From f47a0ce7d9de4ddcbb72abad4d29860f9e6b02e8 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Sun, 3 Apr 2022 22:01:50 +0200 Subject: [PATCH] Small fix --- src/client/component/gui_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }