summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
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/control/Script.cpp
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/control/Script.cpp')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index dbd477e2..1b51e0d6 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -3593,7 +3593,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(car);
- car->AutoPilot.m_nDrivingStyle = (eCarDrivingStyle)ScriptParams[1];
+ car->AutoPilot.m_nDrivingStyle = (uint8)ScriptParams[1];
return 0;
}
case COMMAND_SET_CAR_MISSION:
@@ -3601,7 +3601,7 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(car);
- car->AutoPilot.m_nCarMission = (eCarMission)ScriptParams[1];
+ car->AutoPilot.m_nCarMission = (uint8)ScriptParams[1];
car->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
car->bEngineOn = true;
return 0;