diff --git a/source/game/world/unit_updater.cpp b/source/game/world/unit_updater.cpp index b887c532b..51d2c43cd 100644 --- a/source/game/world/unit_updater.cpp +++ b/source/game/world/unit_updater.cpp @@ -3169,7 +3169,6 @@ namespace Game { bool UnitUpdater::hasEnemyUnitsOnSight(const Unit *unit, bool limitByAttackRange) { vector enemies; - float distToUnit = -1; for (int i = 0; i < unit->getType()->getSkillTypeCount(); ++i) { const SkillType *st = unit->getType()->getSkillType(i); const AttackSkillType *ast = dynamic_cast(st);