mirror of
https://github.com/halpz/re3.git
synced 2025-07-01 14:06:22 +00:00
little fixes
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user