Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-18 18:22:29 +0000
committerStijn Buys <ingar@osirion.org>2008-02-18 18:22:29 +0000
commite217a3fd8e5af449e2305aaf78723ff25b8fcbc2 (patch)
treee0d8fd533c89368e0ef86b94968d43be2b378683 /src
parent0b8582a9aa825024edbd0a21c6287bfcccec28de (diff)
fixed off-by-one bug on key_right
Diffstat (limited to 'src')
-rw-r--r--src/client/console.cc2
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: