summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index fc374025..3ef07dca 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1015,7 +1015,11 @@ void Game::handleInput()
player_node->setTarget(target);
mLastTarget = currentTarget;
}
- } else mLastTarget = Being::UNKNOWN; // Reset last target
+ }
+ else
+ {
+ mLastTarget = Being::UNKNOWN; // Reset last target
+ }
// Talk to the nearest NPC if 't' pressed
if ( keyboard.isKeyActive(keyboard.KEY_TALK) )