1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Fix #19935: Part of old multiplayer name remains when entering a shorter name (#20004)

* clear _playerName

* Change _playerName to a u8string

* Explicitly set underlying string ptr on change
This commit is contained in:
Chase
2023-04-26 15:34:39 +08:00
committed by GitHub
parent c96762517f
commit d6ebeca483
3 changed files with 13 additions and 16 deletions

View File

@@ -1973,7 +1973,7 @@ void TextinputCancel()
}
void WindowStartTextbox(
WindowBase& call_w, WidgetIndex call_widget, StringId existing_text, char* existing_args, int32_t maxLength)
WindowBase& call_w, WidgetIndex call_widget, StringId existing_text, const char* existing_args, int32_t maxLength)
{
if (gUsingWidgetTextBox)
WindowCancelTextbox();