m_nWantedLevel -> GetWantedLevel()

This commit is contained in:
withmorten 2021-01-22 00:19:44 +01:00
commit 497e0b801f
17 changed files with 43 additions and 42 deletions

View file

@ -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);