Codechange: Pass raw string to editable query window. (#13481)
This avoids separating string id and parameters. EncodedString is not needed as it is the raw text that is editable.
This commit is contained in:
@@ -428,8 +428,7 @@ struct SignWindow : Window, SignList {
|
||||
{
|
||||
/* Display an empty string when the sign hasn't been edited yet */
|
||||
if (!si->name.empty()) {
|
||||
SetDParam(0, si->index);
|
||||
this->name_editbox.text.Assign(STR_SIGN_NAME);
|
||||
this->name_editbox.text.Assign(GetString(STR_SIGN_NAME, si->index));
|
||||
} else {
|
||||
this->name_editbox.text.DeleteAll();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user