summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:25:40 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-26 20:25:40 +0200
commit48a10de41fac345aae6140835191e699be1bea4f (patch)
tree835fc979f61b3ade010f50172e44fe215db6f4bd /src/control/Script.cpp
parentfixed replay bug (diff)
downloadre3-48a10de41fac345aae6140835191e699be1bea4f.tar
re3-48a10de41fac345aae6140835191e699be1bea4f.tar.gz
re3-48a10de41fac345aae6140835191e699be1bea4f.tar.bz2
re3-48a10de41fac345aae6140835191e699be1bea4f.tar.lz
re3-48a10de41fac345aae6140835191e699be1bea4f.tar.xz
re3-48a10de41fac345aae6140835191e699be1bea4f.tar.zst
re3-48a10de41fac345aae6140835191e699be1bea4f.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 793b61c3..ceecbeb3 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -9614,7 +9614,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model);
script_assert(pInfo->GetModelType() == MITYPE_VEHICLE);
CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo;
- if (pVehicleInfo->m_vehicleType != VEHICLE_TYPE_CAR) {
+ if (pVehicleInfo->m_vehicleType == VEHICLE_TYPE_CAR) {
switch (model) {
case MI_LANDSTAL:
case MI_LINERUN: