diff options
author | Oliver Kiehl | 2002-12-16 22:15:38 +0000 |
---|---|---|
committer | Oliver Kiehl | 2002-12-16 22:15:38 +0000 |
commit | e3bfb6f1feda36582432ade63ba83e9e38e3b71e (patch) | |
tree | e01d236975bf5cd2adcc1ab31ca444ae9407aa0b /gui | |
parent | a37c45ba0c6d1b324d322cbe59f00743e0a3fb7b (diff) | |
download | scummvm-rg350-e3bfb6f1feda36582432ade63ba83e9e38e3b71e.tar.gz scummvm-rg350-e3bfb6f1feda36582432ade63ba83e9e38e3b71e.tar.bz2 scummvm-rg350-e3bfb6f1feda36582432ade63ba83e9e38e3b71e.zip |
small fix
svn-id: r6002
Diffstat (limited to 'gui')
-rw-r--r-- | gui/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 0433eee569..73eba7ca72 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -339,7 +339,7 @@ void ConsoleDialog::historyScroll(int direction) if (_historyLine == 0 && direction > 0) { int i; for (i = 0; i < _promptEndPos - _promptStartPos; i++) - _history[_historyIndex][i] = _buffer[_promptStartPos + i]; + _history[_historyIndex][i] = _buffer[(_promptStartPos + i) % kBufferSize]; _history[_historyIndex][i] = '\0'; } |