mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Console: fix max console lines bug
We must check on con_max_lines + 1 since the first line is a dummy.
This commit is contained in:
parent
6cf88dc16c
commit
c3b0034478
@ -1109,7 +1109,8 @@ void CConsole::ClearLog(void)
|
||||
//-----------------------------------------------------------------------------
|
||||
void CConsole::ClampLogSize(void)
|
||||
{
|
||||
const int nMaxLines = con_max_lines.GetInt();
|
||||
// +1 since the first row is a dummy
|
||||
const int nMaxLines = con_max_lines.GetInt() + 1;
|
||||
|
||||
if (m_Logger.GetTotalLines() > nMaxLines)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user