aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wage/wage.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 26785b5993..fa00618014 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -169,7 +169,6 @@ void WageEngine::processEvents() {
break;
case Common::KEYCODE_RETURN:
- _gui->appendText(_inputText);
processTurn(&_inputText, NULL);
_inputText = "";
_gui->drawInput();
@@ -205,6 +204,11 @@ void WageEngine::setMenu(String soundName) {
}
void WageEngine::appendText(String &str) {
+ if (_inputText.size())
+ _gui->appendText(_inputText);
+
+ _inputText = "";
+
_gui->appendText(str);
}