Show GRF ID in GetFileByGRFID assertion failure message

This commit is contained in:
Jonathan G Rennison
2023-07-17 18:19:05 +01:00
parent 5ce863d165
commit 3ae2ae8184

View File

@@ -11691,7 +11691,7 @@ void LoadNewGRF(uint load_index, uint num_baseset)
SetBit(c->flags, GCF_RESERVED);
} else if (stage == GLS_ACTIVATION) {
ClrBit(c->flags, GCF_RESERVED);
assert(GetFileByGRFID(c->ident.grfid) == _cur.grffile);
assert_msg(GetFileByGRFID(c->ident.grfid) == _cur.grffile, "%08X", BSWAP32(c->ident.grfid));
ClearTemporaryNewGRFData(_cur.grffile);
BuildCargoTranslationMap();
HandleVarAction2OptimisationPasses();