diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-04-01 15:41:57 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-04-01 15:42:46 +0200 |
commit | ac9c6991a292be6d2eb74e9877ae44be06a403b7 (patch) | |
tree | 562af66de692c428256cc608a7bcae435a6e2b26 | |
parent | 7635b313aa9786bd6d7a18933c97e98f35b7cf4c (diff) | |
download | manaplus-ac9c6991a292be6d2eb74e9877ae44be06a403b7.tar.gz manaplus-ac9c6991a292be6d2eb74e9877ae44be06a403b7.tar.bz2 manaplus-ac9c6991a292be6d2eb74e9877ae44be06a403b7.tar.xz manaplus-ac9c6991a292be6d2eb74e9877ae44be06a403b7.zip |
No need for C++17 herewarp_mage_client
-rw-r--r-- | src/actormanager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 7e1d8c9a2..37f2e8941 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -1352,8 +1352,7 @@ Being *ActorManager::findNearestLivingBeing(const Being *const aroundBeing, priority -= 10000; // but still respect their priorities. } } - else if (auto attackIter = attackMobs.find(being->getName()); - attackIter != attackMobs.end()) + else if (attackMobs.find(being->getName()) != attackMobs.end()) { // prioritise attack mobs that are within attack range if (abs(dx) <= attackRange2 && abs(dy) <= attackRange2) |