Prevent probable L2SiegeGuardAI NPE.

Contributed by Sahar.
This commit is contained in:
MobiusDev 2018-09-03 15:44:20 +00:00
parent 288c1cf4ad
commit 4ed1538acc

View File

@ -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();