summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.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/Garages.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/Garages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 79c44dfd..a8e1f1cb 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -387,7 +387,7 @@ void CGarage::Update()
m_eGarageState = GS_OPENING;
DMAudio.PlayFrontEndSound(SOUND_GARAGE_OPENING, 1);
bool bTakeMoney = false;
- if (FindPlayerPed()->m_pWanted->m_nWantedLevel != 0)
+ if (FindPlayerPed()->m_pWanted->GetWantedLevel() != 0)
bTakeMoney = true;
FindPlayerPed()->m_pWanted->Reset();
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_GARAGE);