diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-18 18:22:29 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-18 18:22:29 +0000 |
commit | e217a3fd8e5af449e2305aaf78723ff25b8fcbc2 (patch) | |
tree | e0d8fd533c89368e0ef86b94968d43be2b378683 /src | |
parent | 0b8582a9aa825024edbd0a21c6287bfcccec28de (diff) |
fixed off-by-one bug on key_right
Diffstat (limited to 'src')
-rw-r--r-- | src/client/console.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/console.cc b/src/client/console.cc index 5fb382e..492d909 100644 --- a/src/client/console.cc +++ b/src/client/console.cc @@ -257,7 +257,7 @@ void keypressed(const SDL_keysym &keysym) break; case SDLK_KP6: case SDLK_RIGHT: - if (input_pos <= (*history_pos).size()) + if (input_pos < (*history_pos).size()) input_pos++; break; case SDLK_BACKSPACE: |