mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
Codechange: Use GetString() with local parameters in script functions. (#13585)
This commit is contained in:
@@ -298,6 +298,5 @@ void ScriptText::_GetEncodedText(std::back_insert_iterator<std::string> &output,
|
||||
|
||||
const std::string Text::GetDecodedText()
|
||||
{
|
||||
::SetDParamStr(0, this->GetEncodedText());
|
||||
return ::GetString(STR_JUST_RAW_STRING);
|
||||
return ::GetString(STR_JUST_RAW_STRING, this->GetEncodedText());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user