Sanitizer fixes

This commit is contained in:
erorcun
2021-06-30 03:31:10 +03:00
parent de4699a97e
commit 9f0daee186
4 changed files with 14 additions and 11 deletions

View File

@@ -644,6 +644,9 @@ CCopPed::ProcessControl(void)
int numCopsNear = 0;
for (int i = 0; i < player->m_numNearPeds; ++i) {
CPed *nearPed = player->m_nearPeds[i];
#ifdef FIX_BUGS
if (nearPed)
#endif
if (nearPed->m_nPedType == PEDTYPE_COP && nearPed->m_nPedState != PED_DEAD)
++numCopsNear;
}