summaryrefslogtreecommitdiffstats
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-06-30 02:31:10 +0200
committererorcun <erorcunerorcun@hotmail.com.tr>2021-06-30 02:31:10 +0200
commit9f0daee186dc815cbf4e8a68871d375bd4752737 (patch)
treecc2ec2e0ade1a44232d97b113bbeda96aa4c8a6f /src/peds/CopPed.cpp
parentfix no VALIDATE_SAVE_SIZE build (diff)
downloadre3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar.gz
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar.bz2
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar.lz
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar.xz
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.tar.zst
re3-9f0daee186dc815cbf4e8a68871d375bd4752737.zip
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r--src/peds/CopPed.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp
index 1efd7733..fbfa7249 100644
--- a/src/peds/CopPed.cpp
+++ b/src/peds/CopPed.cpp
@@ -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;
}