diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 1c8bf4fa3747a..c62ce6fbe72d8 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -825,7 +825,7 @@ void StopTextRefStackUsage() * @param modify_parameters When true, modify the OpenTTD string formatting parameters. * @return the string control code to "execute" now */ -uint RemapNewGRFStringControlCode(uint scc, const char **str, StringParameters ¶meters, bool modify_parameters) +char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters ¶meters, bool modify_parameters) { switch (scc) { default: break; diff --git a/src/strings_internal.h b/src/strings_internal.h index e56f2b8cea97a..b710be23e5423 100644 --- a/src/strings_internal.h +++ b/src/strings_internal.h @@ -347,6 +347,6 @@ void GenerateTownNameString(StringBuilder &builder, size_t lang, uint32_t seed); void GetTownName(StringBuilder &builder, const struct Town *t); void GRFTownNameGenerate(StringBuilder &builder, uint32_t grfid, uint16_t gen, uint32_t seed); -uint RemapNewGRFStringControlCode(uint scc, const char **str, StringParameters ¶meters, bool modify_parameters); +char32_t RemapNewGRFStringControlCode(char32_t scc, const char **str, StringParameters ¶meters, bool modify_parameters); #endif /* STRINGS_INTERNAL_H */