1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 01:35:06 +01:00

Simplify setting existing text

This commit is contained in:
duncanspumpkin
2024-03-22 08:53:22 +00:00
committed by Gymnasiast
parent 3448926251
commit bd3ae5cbb9
9 changed files with 17 additions and 30 deletions

View File

@@ -653,8 +653,7 @@ namespace OpenRCT2::Ui::Windows
}
else if (widgetDesc->Type == "textbox")
{
auto* text = const_cast<char*>(widgetDesc->Text.c_str());
WindowStartTextbox(*this, widgetIndex, STR_STRING, text, widgetDesc->MaxLength + 1);
WindowStartTextbox(*this, widgetIndex, widgetDesc->Text, widgetDesc->MaxLength + 1);
}
}
}