summaryrefslogtreecommitdiffstats
path: root/src/control/Script6.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 04:34:04 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 04:34:04 +0100
commitba0c9e8b295cc988077df68a71573d3ebcff2b60 (patch)
tree0532f46e3335ca84ff32caa4884a145ba06e0e10 /src/control/Script6.cpp
parentFrontend cleanup, .INI, CFO, scrollable pages (diff)
parentMerge pull request #872 from withmorten/sized-enums-miami (diff)
downloadre3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.gz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.bz2
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.lz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.xz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.zst
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.zip
Diffstat (limited to 'src/control/Script6.cpp')
-rw-r--r--src/control/Script6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp
index 53464804..50a7f745 100644
--- a/src/control/Script6.cpp
+++ b/src/control/Script6.cpp
@@ -1409,7 +1409,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
CollectParameters(&m_nIp, 3);
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(pVehicle);
- pVehicle->AutoPilot.m_nTempAction = (eCarTempAction)ScriptParams[1];
+ pVehicle->AutoPilot.m_nTempAction = (uint8)ScriptParams[1];
pVehicle->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + ScriptParams[2];
return 0;
}