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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user