Changeset - r28290:928f177c6ad6
[Not reviewed]
master
0 2 0
Peter Nelson - 9 months ago 2023-12-14 19:35:35
peter1138@openttd.org
Fix: Left-over printf-style format passed to fmt. (#11584)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/console_cmds.cpp
Show inline comments
 
@@ -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) {
src/map.cpp
Show inline comments
 
@@ -82,7 +82,7 @@ TileIndex TileAdd(TileIndex tile, TileIn
 
	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);
0 comments (0 inline, 0 general)