Limit size of waiting Input.gets text

This commit is contained in:
Inori 2019-09-06 16:32:03 -04:00 committed by Inori
parent b6a0f24d73
commit 8ed09b5d40

View file

@ -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 :