Fixed L2Character isInFrontOfTarget method NPE.
This commit is contained in:
@@ -5911,10 +5911,9 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
|
|
||||||
public boolean isInFrontOfTarget()
|
public boolean isInFrontOfTarget()
|
||||||
{
|
{
|
||||||
final L2Object target = _target;
|
if ((_target != null) && _target.isCharacter())
|
||||||
if (target.isCharacter())
|
|
||||||
{
|
{
|
||||||
return isInFrontOf((L2Character) target);
|
return isInFrontOf((L2Character) _target);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user