mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-24 16:45:21 +02:00
Limit size of waiting Input.gets text
This commit is contained in:
parent
b6a0f24d73
commit
8ed09b5d40
1 changed files with 2 additions and 1 deletions
|
@ -258,7 +258,8 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
break;
|
||||
|
||||
case SDL_TEXTINPUT :
|
||||
textInputBuffer += event.text.text;
|
||||
if (textInputBuffer.size() < 512)
|
||||
textInputBuffer += event.text.text;
|
||||
break;
|
||||
|
||||
case SDL_QUIT :
|
||||
|
|
Loading…
Add table
Reference in a new issue