summaryrefslogtreecommitdiffstats
path: root/src/control/Script2.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-22 00:19:44 +0100
committerwithmorten <morten.with@gmail.com>2021-01-22 00:19:44 +0100
commit497e0b801ff30cf836887b625752c1643b533a7e (patch)
treee0c2952a6d863b7cde0f46aca121c37ed39f8696 /src/control/Script2.cpp
parentfree cam fixes (diff)
downloadre3-497e0b801ff30cf836887b625752c1643b533a7e.tar
re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.gz
re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.bz2
re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.lz
re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.xz
re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.zst
re3-497e0b801ff30cf836887b625752c1643b533a7e.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script2.cpp b/src/control/Script2.cpp
index 6cb078bb..9329b3bc 100644
--- a/src/control/Script2.cpp
+++ b/src/control/Script2.cpp
@@ -1033,7 +1033,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
CollectParameters(&m_nIp, 1);
CPlayerPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed;
script_assert(pPed);
- ScriptParams[0] = pPed->m_pWanted->m_nWantedLevel;
+ ScriptParams[0] = pPed->m_pWanted->GetWantedLevel();
StoreParameters(&m_nIp, 1);
return 0;
}