diff --git a/src/client/component/gui_console.cpp b/src/client/component/gui_console.cpp index 13943c7a..60b425cb 100644 --- a/src/client/component/gui_console.cpp +++ b/src/client/component/gui_console.cpp @@ -106,7 +106,7 @@ namespace gui::console } } - if (text[text.size() - 1] == '\n') + if (!text.empty() && text[text.size() - 1] == '\n') { text.pop_back(); }