From aeb08a918aa459eeaaf48c7c96d1d8079c8e6652 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 15 Jul 2025 19:43:27 +0100 Subject: [PATCH] Codefix: Spelling error in name of GetGRFStringTextStackParameters --- src/newgrf_commons.cpp | 2 +- src/newgrf_text.cpp | 4 ++-- src/newgrf_text.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index 98c9d434f1..8e3550f998 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -476,7 +476,7 @@ CommandCost GetErrorMessageFromLocationCallbackResult(uint16_t cb_res, std::span /* If this error isn't for the local player then it won't be seen, so don't bother encoding anything. */ if (IsLocalCompany()) { StringID stringid = GetGRFStringID(grffile->grfid, text_id); - auto params = GetGRFSringTextStackParameters(grffile, stringid, textstack); + auto params = GetGRFStringTextStackParameters(grffile, stringid, textstack); res.SetEncodedMessage(GetEncodedStringWithArgs(stringid, params)); } diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 3480598032..b0bf3b58b6 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -973,7 +973,7 @@ static void HandleNewGRFStringControlCodes(std::string_view str, TextRefStack &s * @param textstack Text parameter stack. * @returns Parameters for GRF string. */ -std::vector GetGRFSringTextStackParameters(const GRFFile *grffile, StringID stringid, std::span textstack) +std::vector GetGRFStringTextStackParameters(const GRFFile *grffile, StringID stringid, std::span textstack) { if (stringid == INVALID_STRING_ID) return {}; @@ -998,6 +998,6 @@ std::vector GetGRFSringTextStackParameters(const GRFFile *grffi std::string GetGRFStringWithTextStack(const struct GRFFile *grffile, GRFStringID grfstringid, std::span textstack) { StringID stringid = GetGRFStringID(grffile->grfid, grfstringid); - auto params = GetGRFSringTextStackParameters(grffile, stringid, textstack); + auto params = GetGRFStringTextStackParameters(grffile, stringid, textstack); return GetStringWithArgs(stringid, params); } diff --git a/src/newgrf_text.h b/src/newgrf_text.h index 7442c1f9ec..9bf2b98440 100644 --- a/src/newgrf_text.h +++ b/src/newgrf_text.h @@ -28,7 +28,7 @@ void AddGRFTextToList(GRFTextWrapper &list, std::string_view text_to_add); bool CheckGrfLangID(uint8_t lang_id, uint8_t grf_version); -std::vector GetGRFSringTextStackParameters(const struct GRFFile *grffile, StringID stringid, std::span textstack); +std::vector GetGRFStringTextStackParameters(const struct GRFFile *grffile, StringID stringid, std::span textstack); std::string GetGRFStringWithTextStack(const struct GRFFile *grffile, GRFStringID grfstringid, std::span textstack); #endif /* NEWGRF_TEXT_H */