From d1317f8fa649120f841f8c1f8bcf17b3ee74c235 Mon Sep 17 00:00:00 2001 From: withmorten Date: Fri, 22 Jan 2021 00:20:51 +0100 Subject: m_nWantedLevel -> GetWantedLevel() --- src/control/Garages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/control/Garages.cpp') diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 1fecdf22..0794a31c 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -452,7 +452,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->Suspend(); } -- cgit v1.2.3