Fix order dest refcount mismatch warning when loading very old savegames

This commit is contained in:
Jonathan G Rennison
2021-04-14 20:01:37 +01:00
parent 9e3ac646fa
commit cb5c6902db

View File

@@ -2029,6 +2029,7 @@ bool AfterLoadGame()
for (Order *order : v->Orders()) order->SetNonStopType(ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
}
}
IntialiseOrderDestinationRefcountMap();
} else if (IsSavegameVersionBefore(SLV_94)) {
/* Unload and transfer are now mutual exclusive. */
for (Order *order : Order::Iterate()) {