Validate cargo packet deferred payments in CheckCaches

This commit is contained in:
Jonathan G Rennison
2019-06-08 12:52:34 +01:00
parent 326b3aa66a
commit 49dee941fb
3 changed files with 15 additions and 0 deletions

View File

@@ -75,6 +75,7 @@
#include "tbtr_template_vehicle.h"
#include "string_func_extra.h"
#include "industry.h"
#include "cargopacket.h"
#include "linkgraph/linkgraphschedule.h"
#include "tracerestrict.h"
@@ -1608,6 +1609,8 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
if (!TraceRestrictSlot::ValidateVehicleIndex()) CCLOG("Trace restrict slot vehicle index validation failed");
TraceRestrictSlot::ValidateSlotOccupants(log);
if (!CargoPacket::ValidateDeferredCargoPayments()) CCLOG("Cargo packets deferred payments validation failed");
#undef CCLOG
}