summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-12-09 01:15:20 +0100
committerGitHub <noreply@github.com>2020-12-09 01:15:20 +0100
commit6b654094a5299d55a3621a3a23b6dafbb48b78e9 (patch)
treee9735ff0ce34dbfca24bf6c4fc609cbacaac81f1 /src/core
parentfix CObject::DeleteAllTempObjectsInArea (diff)
parentdon't cast script param to uint8 (diff)
downloadre3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar.gz
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar.bz2
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar.lz
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar.xz
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.tar.zst
re3-6b654094a5299d55a3621a3a23b6dafbb48b78e9.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index 1c988894..da565f22 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -1537,7 +1537,7 @@ CWorld::CallOffChaseForAreaSectorListVehicles(CPtrList &list, float x1, float y1
if(pVehicle->m_scanCode != GetCurrentScanCode()) {
pVehicle->m_scanCode = GetCurrentScanCode();
const CVector &vehiclePos = pVehicle->GetPosition();
- eCarMission carMission = pVehicle->AutoPilot.m_nCarMission;
+ uint8 carMission = pVehicle->AutoPilot.m_nCarMission;
if(pVehicle != FindPlayerVehicle() && vehiclePos.x > fStartX && vehiclePos.x < fEndX &&
vehiclePos.y > fStartY && vehiclePos.y < fEndY && pVehicle->bIsLawEnforcer &&
(carMission == MISSION_RAMPLAYER_FARAWAY || carMission == MISSION_RAMPLAYER_CLOSE ||