diff --git a/src/openrct2/localisation/Formatting.cpp b/src/openrct2/localisation/Formatting.cpp index aedeac49e5..03264639eb 100644 --- a/src/openrct2/localisation/Formatting.cpp +++ b/src/openrct2/localisation/Formatting.cpp @@ -808,7 +808,8 @@ namespace OpenRCT2 size_t FormatStringLegacy(char* buffer, size_t bufferLen, rct_string_id id, const void* args) { - std::vector anyArgs; + thread_local std::vector anyArgs; + anyArgs.clear(); auto fmt = GetFmtStringById(id); BuildAnyArgListFromLegacyArgBuffer(fmt, anyArgs, args); return FormatStringAny(buffer, bufferLen, fmt, anyArgs);