diff options
author | Eugene Sandulenko | 2016-01-06 23:17:21 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-06 23:17:21 +0100 |
commit | af691d995974be826a7b4784cc021b02a812d7fe (patch) | |
tree | 39c6d00a008ec1faca9df8af56b0af8777ae8d45 | |
parent | 550d393341dbf206ffc33e5effa31eb40d427358 (diff) | |
download | scummvm-rg350-af691d995974be826a7b4784cc021b02a812d7fe.tar.gz scummvm-rg350-af691d995974be826a7b4784cc021b02a812d7fe.tar.bz2 scummvm-rg350-af691d995974be826a7b4784cc021b02a812d7fe.zip |
WAGE: Fix crash with empty input
-rw-r--r-- | engines/wage/wage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 4d66f820ec..5fa5626129 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -169,6 +169,9 @@ void WageEngine::processEvents() { break; case Common::KEYCODE_RETURN: + if (_inputText.empty()) + break; + processTurn(&_inputText, NULL); _inputText = ""; _gui->drawInput(); |