From af691d995974be826a7b4784cc021b02a812d7fe Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 6 Jan 2016 23:17:21 +0100 Subject: WAGE: Fix crash with empty input --- engines/wage/wage.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); -- cgit v1.2.3