diff options
author | aap <aap@papnet.eu> | 2021-01-08 13:51:42 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-08 13:51:42 +0100 |
commit | 8be05679249367b39bcee1e07d6831d11918210b (patch) | |
tree | ab13259d150966afc431656d0db65c5870561c3d /src/control/Phones.cpp | |
parent | wtf (diff) | |
download | re3-8be05679249367b39bcee1e07d6831d11918210b.tar re3-8be05679249367b39bcee1e07d6831d11918210b.tar.gz re3-8be05679249367b39bcee1e07d6831d11918210b.tar.bz2 re3-8be05679249367b39bcee1e07d6831d11918210b.tar.lz re3-8be05679249367b39bcee1e07d6831d11918210b.tar.xz re3-8be05679249367b39bcee1e07d6831d11918210b.tar.zst re3-8be05679249367b39bcee1e07d6831d11918210b.zip |
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 cc80360d..d25f146f 100644 --- a/src/control/Phones.cpp +++ b/src/control/Phones.cpp @@ -286,6 +286,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(); |