From c5699a9b30c67ed15f6fe6ebe3c670736909695f Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 26 Sep 2020 21:35:09 +0300 Subject: now fixed properly --- src/control/Script.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/control/Script.cpp') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index f5391527..4516acf0 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -10098,11 +10098,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command) model = CStreaming::ms_vehiclesLoaded[index]; if (model == -1) continue; - // desperatly want to believe this was inlined :| - CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model); - script_assert(pInfo->GetModelType() == MITYPE_VEHICLE); - CVehicleModelInfo* pVehicleInfo = (CVehicleModelInfo*)pInfo; - if (pVehicleInfo->m_vehicleType == VEHICLE_TYPE_CAR || pVehicleInfo->m_vehicleType == VEHICLE_TYPE_BIKE) { + if (CModelInfo::IsCarModel(model) || CModelInfo::IsBikeModel(model)) { switch (model) { case MI_LANDSTAL: case MI_LINERUN: -- cgit v1.2.3