Codechange: migrate from C-style GetString to C++-style GetString

This commit is contained in:
Rubidium
2023-05-19 14:35:53 +02:00
committed by rubidium42
parent 1a179cb297
commit 63d9bb93b8
7 changed files with 31 additions and 67 deletions

View File

@@ -250,8 +250,6 @@ const std::string Text::GetDecodedText()
{
const std::string &encoded_text = this->GetEncodedText();
static char buf[1024];
::SetDParamStr(0, encoded_text);
::GetString(buf, STR_JUST_RAW_STRING, lastof(buf));
return buf;
return ::GetString(STR_JUST_RAW_STRING);
}