mirror of
https://github.com/halpz/re3.git
synced 2025-01-02 19:25:30 +00:00
Merge pull request #1236 from Nopey/fix_nearPeds
Fix NearPed count going negative
This commit is contained in:
commit
d2e594db2b
|
@ -326,6 +326,7 @@ CPed::~CPed(void)
|
||||||
nearPed->m_nearPeds[k] = nearPed->m_nearPeds[k + 1];
|
nearPed->m_nearPeds[k] = nearPed->m_nearPeds[k + 1];
|
||||||
nearPed->m_nearPeds[k + 1] = nil;
|
nearPed->m_nearPeds[k + 1] = nil;
|
||||||
}
|
}
|
||||||
|
nearPed->m_nearPeds[ARRAY_SIZE(m_nearPeds) - 1] = nil;
|
||||||
nearPed->m_numNearPeds--;
|
nearPed->m_numNearPeds--;
|
||||||
} else
|
} else
|
||||||
j++;
|
j++;
|
||||||
|
|
Loading…
Reference in a new issue