Fix: "-q" displays NewGRF IDs in the wrong byte-order (#12397)
This commit is contained in:
		@@ -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);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user