mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: "-q" displays NewGRF IDs in the wrong byte-order (#12397)
This commit is contained in:
parent
8d312b305b
commit
c0308acb03
|
@ -246,7 +246,7 @@ static void WriteSavegameInfo(const std::string &name)
|
|||
message += "NewGRFs:\n";
|
||||
if (_load_check_data.HasNewGrfs()) {
|
||||
for (GRFConfig *c = _load_check_data.grfconfig; c != nullptr; c = c->next) {
|
||||
fmt::format_to(std::back_inserter(message), "{:08X} {} {}\n", c->ident.grfid,
|
||||
fmt::format_to(std::back_inserter(message), "{:08X} {} {}\n", BSWAP32(c->ident.grfid),
|
||||
FormatArrayAsHex(HasBit(c->flags, GCF_COMPATIBLE) ? c->original_md5sum : c->ident.md5sum), c->filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue