Skip to content

Commit

Permalink
WAGE: Fix crash with empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 6, 2016
1 parent 550d393 commit af691d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/wage/wage.cpp
Expand Up @@ -169,6 +169,9 @@ void WageEngine::processEvents() {
break;

case Common::KEYCODE_RETURN:
if (_inputText.empty())
break;

processTurn(&_inputText, NULL);
_inputText = "";
_gui->drawInput();
Expand Down

0 comments on commit af691d9

Please sign in to comment.