diff --git a/src/openttd.cpp b/src/openttd.cpp index 0d8cabc2ca..88a100ae5b 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1634,6 +1634,12 @@ void CheckCaches(bool force_check, std::function log) if (!CargoPacket::ValidateDeferredCargoPayments()) CCLOG("Cargo packets deferred payments validation failed"); + if (_order_destination_refcount_map_valid) { + btree::btree_map saved_order_destination_refcount_map = std::move(_order_destination_refcount_map); + IntialiseOrderDestinationRefcountMap(); + if (saved_order_destination_refcount_map != _order_destination_refcount_map) CCLOG("Order destination refcount map mismatch"); + } + #undef CCLOG }