diff --git a/src/openrct2/localisation/LanguagePack.cpp b/src/openrct2/localisation/LanguagePack.cpp index 698e768f88..5e0acfe307 100644 --- a/src/openrct2/localisation/LanguagePack.cpp +++ b/src/openrct2/localisation/LanguagePack.cpp @@ -549,7 +549,7 @@ private: } } - auto s = std::string(sb.GetBuffer()); + auto s = std::string(sb.GetBuffer(), sb.GetLength()); if (_currentGroup.empty()) { // Make sure the list is big enough to contain this string id