Check trace restrict slot vehicle index and occupants in CheckCaches

This commit is contained in:
Jonathan G Rennison
2019-05-19 18:40:18 +01:00
parent 5b7d1f7f80
commit e1d98e1b37
3 changed files with 39 additions and 0 deletions

View File

@@ -1530,6 +1530,9 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
if (tv->Next()) assert_msg(tv->Next()->Prev() == tv, "%u", tv->index);
}
if (!TraceRestrictSlot::ValidateVehicleIndex()) CCLOG("Trace restrict slot vehicle index validation failed");
TraceRestrictSlot::ValidateSlotOccupants(log);
#undef CCLOG
}