fixed a crash when AiAction calls player->getObserver in multiclick.

important note: AiAction you always want to call "owner" becuase "player" here means single target spell has a target and the target is "player". I didn't come up with the variable name, sorry it is very confusing in this spot of the code.
This commit is contained in:
omegablast2002@yahoo.com
2011-10-01 18:42:43 +00:00
parent 0d279cbf42
commit fe20ae0c24

View File

@@ -85,7 +85,7 @@ int AIAction::Act()
int AIAction::clickMultiAct(vector<Targetable*>& actionTargets)
{
GameObserver * g = player->getObserver();
GameObserver * g = owner->getObserver();
TargetChooser * tc = g->getCurrentTargetChooser();
bool sourceIncluded = false;
if(!tc) return 0;