Small fix
This commit is contained in:
parent
d3defef8d6
commit
f47a0ce7d9
@ -106,7 +106,7 @@ namespace gui::console
|
||||
}
|
||||
}
|
||||
|
||||
if (text[text.size() - 1] == '\n')
|
||||
if (!text.empty() && text[text.size() - 1] == '\n')
|
||||
{
|
||||
text.pop_back();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user