summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 4ed04a20f..f67fac098 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1027,10 +1027,10 @@ void Game::updateHistory(SDL_Event &event)
if (!player_node || !player_node->getAttackType())
return;
- bool old = false;
-
if (event.key.keysym.sym != -1)
{
+ bool old = false;
+
int key = keyboard.getKeyIndex(event);
int time = cur_time;
int idx = -1;