[-] Fixed compilation in previous revision

This commit is contained in:
cybermind 2012-11-10 22:02:20 +06:00
parent c7d7ca33d9
commit 42cd7fad24

View file

@ -216,7 +216,7 @@ static Target *SelectTargetUnitsOfAutoCast(CUnit &caster, const SpellType &spell
bool inCombat = false;
for (size_t i = 0; i < table.size(); ++i) {
if (table[i]->IsVisibleAsGoal(*caster.Player) && caster.IsEnemy(*table[i])
&& CanTarget(caster.Type, table[i]->Type)) {
&& CanTarget(*caster.Type, *table[i]->Type)) {
inCombat = true;
break;
}