From cb386daaa07e90c23d4c28769c5b467df19fbead Mon Sep 17 00:00:00 2001 From: mathusummut Date: Wed, 6 Feb 2019 01:35:44 +0100 Subject: [PATCH] Removed unused variable --- source/game/world/unit_updater.cpp | 1 - 1 file changed, 1 deletion(-) 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);