From 400c99f8dc05d0082814e2eff1dbaaeefd019552 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 19 Aug 2003 02:19:17 +0000 Subject: [PATCH] fix partial log output bug --- stepmania/src/RageLog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 8217d49721..41e6eee5ab 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -303,8 +303,12 @@ const char *RageLog::GetRecentLog( int n ) { if( n >= BACKLOG_LINES || n >= backlog_cnt ) return false; - n += backlog_start; - n %= BACKLOG_LINES; + + if( backlog_cnt == BACKLOG_LINES ) + { + n += backlog_start; + n %= BACKLOG_LINES; + } /* Make sure it's terminated: */ backlog[n][ sizeof(backlog[n])-1 ] = 0;