diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-26 20:35:09 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-26 20:35:09 +0200 |
commit | c5699a9b30c67ed15f6fe6ebe3c670736909695f (patch) | |
tree | 7924f9de5eee494697118a6f895f147346ab69ab /src/control/Script.cpp | |
parent | fixed tabs (diff) | |
download | re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar.gz re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar.bz2 re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar.lz re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar.xz re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.tar.zst re3-c5699a9b30c67ed15f6fe6ebe3c670736909695f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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: |