fixed a loop that can occur in multitarget where the maxs targets are set with a variable word and ends up resulting in a return of maxtargets = 0 which inturn locks ai in a loop, i imagine layers also.

This commit is contained in:
omegablast2002@yahoo.com
2013-02-08 00:34:45 +00:00
parent 8b7c0e6b83
commit d2f14897a6

View File

@@ -3123,7 +3123,7 @@ void MayAbility::Update(float dt)
}
if (TargetAbility * ta = dynamic_cast<TargetAbility *>(ability))
{
if (!ta->getActionTc()->validTargetsExist())
if (!ta->getActionTc()->validTargetsExist() || ta->getActionTc()->maxtargets == 0)
return;
}
game->mLayers->actionLayer()->setMenuObject(source, must);