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

@@ -422,7 +422,7 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
break;
}
case WIDX_FILTER_TEXT_BOX:
WindowStartTextbox(*this, widgetIndex, STR_STRING, _filter_string, sizeof(_filter_string));
WindowStartTextbox(*this, widgetIndex, _filter_string, sizeof(_filter_string));
break;
case WIDX_FILTER_CLEAR_BUTTON:
std::fill_n(_filter_string, sizeof(_filter_string), 0x00);