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

@@ -817,6 +817,8 @@ struct TraceRestrictSlot : TraceRestrictSlotPool::PoolItem<&_tracerestrictslot_p
OwnerByte owner;
static void RebuildVehicleIndex();
static bool ValidateVehicleIndex();
static void ValidateSlotOccupants(std::function<void(const char *)> log);
static void PreCleanPool();
TraceRestrictSlot(CompanyID owner = INVALID_COMPANY)