summaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2020-12-07 01:43:03 +0100
committerwithmorten <morten.with@gmail.com>2020-12-07 02:02:59 +0100
commit7e11f639aa468eaf24e51fa04a59fbe966119892 (patch)
tree81549777395ab7b7f48bbfd539be01d44ec50712 /src/control
parent5e9a433b7912a597ba0287b4d48332b29773594e (diff)
don't cast script param to uint8
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp
index 399765f0..3629bb4b 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -1436,7 +1436,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(pVehicle);
- pVehicle->SetStatus((uint8)ScriptParams[1]);
+ pVehicle->SetStatus(ScriptParams[1]);
return 0;
}
case COMMAND_IS_CHAR_MALE: