From 152d8c2f40e2f2df68ecc7f91304bd1edc8949ec Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 15 Mar 2020 18:47:21 +0300 Subject: replay bug fixes, script bug fix --- src/control/Script.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/control/Script.cpp') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 4a6b5376..75c594cf 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -8106,6 +8106,8 @@ int8 CRunningScript::ProcessCommands900To999(int32 command) if (model != -1) break; model = CStreaming::ms_vehiclesLoaded[index]; + if (model == -1) + continue; // desperatly want to believe this was inlined :| CBaseModelInfo* pInfo = CModelInfo::GetModelInfo(model); assert(pInfo->m_type == MITYPE_VEHICLE); -- cgit v1.2.3