From d003cc6ee26f521c29d8bdc742a277eed359af90 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Tue, 9 Aug 2022 23:42:20 +0200 Subject: [PATCH] Use current backlog page instead of old (fixes #5719) Better fix by Robyt3 --- src/game/client/components/console.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 25f92c738..33aea863b 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -760,10 +760,8 @@ void CGameConsole::OnRender() } static int s_LastActivePage = pConsole->m_BacklogCurPage; - if(pConsole->m_BacklogCurPage == INT_MAX) - s_LastActivePage = INT_MAX; int TotalPages = 1; - for(int Page = 0; Page <= s_LastActivePage; ++Page, OffsetY = 0.0f) + for(int Page = 0; Page <= maximum(s_LastActivePage, pConsole->m_BacklogCurPage); ++Page, OffsetY = 0.0f) { while(pEntry) {