diff options
Diffstat (limited to '')
-rw-r--r-- | src/control/Phones.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp index 4f1703f2..71f6c8e5 100644 --- a/src/control/Phones.cpp +++ b/src/control/Phones.cpp @@ -284,6 +284,7 @@ CPhoneInfo::Initialise(void) CBuilding *building = pool->GetSlot(i); if (building) { if (building->GetModelIndex() == MI_PHONEBOOTH1) { + assert(m_nMax < ARRAY_SIZE(m_aPhones) && "NUMPHONES should be increased"); CPhone *maxPhone = &m_aPhones[m_nMax]; maxPhone->m_nState = PHONE_STATE_FREE; maxPhone->m_vecPos = building->GetPosition(); |