aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/wage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/wage.cpp')
-rw-r--r--engines/wage/wage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 92602234dd..f36d7ce239 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -171,7 +171,7 @@ void WageEngine::processEvents() {
break;
processTurn(&_inputText, NULL);
- _inputText = "";
+ _inputText.clear();
_gui->appendText("");
_gui->disableUndo();
break;
@@ -212,8 +212,7 @@ void WageEngine::setMenu(Common::String menu) {
void WageEngine::appendText(const char *str) {
_gui->appendText(str);
- if (_inputText.size())
- _inputText = "";
+ _inputText.clear();
}
void WageEngine::gameOver() {