diff options
Diffstat (limited to 'engines/wage/gui-console.cpp')
-rw-r--r-- | engines/wage/gui-console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/gui-console.cpp b/engines/wage/gui-console.cpp index 92e61f9617..2f4bac2937 100644 --- a/engines/wage/gui-console.cpp +++ b/engines/wage/gui-console.cpp @@ -87,13 +87,13 @@ void Gui::appendText(const char *s) { // Okay, we got new lines, need to split it // and push substrings individually - Common::String tmp = ""; + Common::String tmp; for (uint i = 0; i < str.size(); i++) { if (str[i] == '\n') { _out.push_back(tmp); flowText(tmp); - tmp = ""; + tmp.clear(); continue; } |