From ace441d5ea364f434c08f2cd209083f8c1fb5e9d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 2 Jul 2024 18:56:43 +0100 Subject: [PATCH] Fix GrfMsg logging in ChangeGRFFeatureTestName --- src/newgrf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 1dfc6b7824..0c2934968e 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -9509,11 +9509,11 @@ static bool ChangeGRFFeatureTestName(uint8_t langid, std::string_view str) for (const GRFFeatureInfo *info = _grf_feature_list; info->name != nullptr; info++) { if (str == info->name) { _current_grf_feature_test.feature = info; - GrfMsg(2, "Action 14 feature test: found feature named: '{}' (version: %u) in 'FTST'->'NAME'", str, info->version); + GrfMsg(2, "Action 14 feature test: found feature named: '{}' (version: {}) in 'FTST'->'NAME'", StrMakeValid(str), info->version); return true; } } - GrfMsg(2, "Action 14 feature test: could not find feature named: '{}' in 'FTST'->'NAME'", str); + GrfMsg(2, "Action 14 feature test: could not find feature named: '{}' in 'FTST'->'NAME'", StrMakeValid(str)); _current_grf_feature_test.feature = nullptr; return true; }