mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Fix: Left-over printf-style format passed to fmt. (#11584)
This commit is contained in:
parent
63c006a174
commit
da2d21f5b0
@ -2272,7 +2272,7 @@ DEF_CONSOLE_CMD(ConNewGRFProfile)
|
||||
started++;
|
||||
|
||||
if (!grfids.empty()) grfids += ", ";
|
||||
fmt::format_to(std::back_inserter(grfids), "[{%:08X}]", BSWAP32(pr.grffile->grfid));
|
||||
fmt::format_to(std::back_inserter(grfids), "[{:08X}]", BSWAP32(pr.grffile->grfid));
|
||||
}
|
||||
}
|
||||
if (started > 0) {
|
||||
|
@ -82,7 +82,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add,
|
||||
y = TileY(tile) + dy;
|
||||
|
||||
if (x >= Map::SizeX() || y >= Map::SizeY()) {
|
||||
std::string message = fmt::format("TILE_ADD({}) when adding 0x{:04X} and 0x{%04X} failed",
|
||||
std::string message = fmt::format("TILE_ADD({}) when adding 0x{:04X} and 0x{:04X} failed",
|
||||
exp, tile, add);
|
||||
#if !defined(_MSC_VER)
|
||||
fmt::print(stderr, "{}:{} {}\n", file, line, message);
|
||||
|
Loading…
Reference in New Issue
Block a user