Crash log: Fix counts in recent news messages header

pull/104/head
Jonathan G Rennison 5 years ago
parent 163192b5e0
commit 99949d6559

@ -343,7 +343,7 @@ char *CrashLog::LogGamelog(char *buffer, const char *last) const
char *CrashLog::LogRecentNews(char *buffer, const char *last) const
{
uint total = 0;
for (NewsItem *news = _latest_news; news != nullptr; news = news->next) {
for (NewsItem *news = _latest_news; news != nullptr; news = news->prev) {
total++;
}
uint show = min<uint>(total, 32);

Loading…
Cancel
Save