summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: