diff options
author | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
commit | 497e0b801ff30cf836887b625752c1643b533a7e (patch) | |
tree | e0c2952a6d863b7cde0f46aca121c37ed39f8696 /src/peds/Population.cpp | |
parent | free cam fixes (diff) | |
download | re3-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 'src/peds/Population.cpp')
-rw-r--r-- | src/peds/Population.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 53db7263..053cf5e4 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -582,7 +582,7 @@ CPopulation::AddToPopulation(float minDist, float maxDist, float minDistOffScree CVector playerCentreOfWorld = FindPlayerCentreOfWorld(CWorld::PlayerInFocus); CTheZones::GetZoneInfoForTimeOfDay(&playerCentreOfWorld, &zoneInfo); CWanted *wantedInfo = playerInfo->m_pPed->m_pWanted; - if (wantedInfo->m_nWantedLevel > 2) { + if (wantedInfo->GetWantedLevel() > 2) { if (ms_nNumCop < wantedInfo->m_MaxCops && !playerInfo->m_pPed->bInVehicle && (CCarCtrl::NumLawEnforcerCars >= wantedInfo->m_MaximumLawEnforcerVehicles || CCarCtrl::NumRandomCars >= playerInfo->m_nTrafficMultiplier * CCarCtrl::CarDensityMultiplier |