Codechange: Pass encoded script strings as EncodedString.
This removes the ambiguity of having std::strings that may or may not be encoded.
This commit is contained in:
committed by
Peter Nelson
parent
2a05a845df
commit
b55af05626
@@ -61,7 +61,7 @@
|
||||
EnforceDeityMode(false);
|
||||
EnforcePrecondition(false, IsValidTown(town_id));
|
||||
|
||||
return ScriptObject::Command<CMD_TOWN_SET_TEXT>::Do(town_id, text != nullptr ? text->GetEncodedText() : std::string{});
|
||||
return ScriptObject::Command<CMD_TOWN_SET_TEXT>::Do(town_id, text != nullptr ? text->GetEncodedText() : EncodedString{});
|
||||
}
|
||||
|
||||
/* static */ SQInteger ScriptTown::GetPopulation(TownID town_id)
|
||||
|
||||
Reference in New Issue
Block a user