summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-02-02 11:29:13 +0100
committerGitHub <noreply@github.com>2020-02-02 11:29:13 +0100
commitbedf19c5230d4513b822bbdd50b302d7e557b257 (patch)
tree4c3cd227ec12f3ffb19d8be7e45828a5c4e41b13
parentMerge pull request #319 from Nick007J/master (diff)
downloadre3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar.gz
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar.bz2
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar.lz
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar.xz
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.tar.zst
re3-bedf19c5230d4513b822bbdd50b302d7e557b257.zip
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 392dc918..25b6d27c 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -4404,7 +4404,7 @@ int8 CRunningScript::ProcessCommands500To599(int32 command)
CollectParameters(&m_nIp, 2);
CPlayerPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed;
assert(pPed);
- if (ScriptParams[0]) {
+ if (ScriptParams[1]) {
pPed->m_pWanted->m_bIgnoredByCops = true;
CWorld::StopAllLawEnforcersInTheirTracks();
}