* Fix to an obo bug in the console history recall code

This commit is contained in:
Tim Angus committed 2006-01-28 23:26:23 +00:00
1 parent ab29f29495
commit 91b2b9297a
1 file changed
+1 -1
+1 -1
View File
@@ -548,7 +548,7 @@ void Console_Key (int key) {
if ( (key == K_MWHEELDOWN && keys[K_SHIFT].down) || ( key == K_DOWNARROW ) || ( key == K_KP_DOWNARROW ) ||
( ( tolower(key) == 'n' ) && keys[K_CTRL].down ) ) {
if (historyLine == nextHistoryLine)
if (historyLine + 1 == nextHistoryLine)
return;
historyLine++;
g_consoleField = historyEditLines[ historyLine % COMMAND_HISTORY ];