Prevent probable L2SiegeGuardAI NPE.
Contributed by Sahar.
This commit is contained in:
parent
288c1cf4ad
commit
4ed1538acc
@ -519,7 +519,7 @@ public class L2SiegeGuardAI extends L2CharacterAI implements Runnable
|
||||
_actor.setTarget(null);
|
||||
setIntention(AI_INTENTION_IDLE, null, null);
|
||||
}
|
||||
else
|
||||
else if (sGuard.getSpawn() != null)
|
||||
{
|
||||
final double dx = _actor.getX() - attackTarget.getX();
|
||||
final double dy = _actor.getY() - attackTarget.getY();
|
||||
|
Loading…
Reference in New Issue
Block a user