replay bug fixes, script bug fix

This commit is contained in:
Nikolay Korolev 2020-03-15 18:47:21 +03:00
parent 1d8b3a216c
commit 152d8c2f40
4 changed files with 213 additions and 80 deletions

View file

@ -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);