summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gui/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index aae30a40b..848a34472 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -191,7 +191,7 @@ int GUIConsole::RenderConsole(void)
line_char_width = gr_maxExW(curr_line.c_str(), fontResource, mConsoleW);
if (line_char_width < curr_line.size()) {
rConsole.push_back(curr_line.substr(0, line_char_width));
- curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width);
+ curr_line = curr_line.substr(line_char_width);
} else {
rConsole.push_back(curr_line);
break;