diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7a887fb2..7501d343 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -830,11 +830,11 @@ void Game::handleInput() if (keyboard.isKeyActive(keyboard.KEY_TARGET_ATTACK)) { - Being *target = 0; + Being *target = local_player->getTarget(); bool newTarget = !keyboard.isKeyActive(keyboard.KEY_TARGET); // A set target has highest priority - if (!local_player->getTarget()) + if (!target) { // Only auto target Monsters target = actorSpriteManager->findNearestLivingBeing(local_player, |