Fixed probable processQuestEvent NPE.
Contributed by Sero.
This commit is contained in:
@@ -1457,7 +1457,7 @@ public class PlayerInstance extends Playable
|
||||
else if (_questNpcObject > 0)
|
||||
{
|
||||
final WorldObject object = World.getInstance().findObject(getLastQuestNpcObject());
|
||||
if (object.isNpc() && isInsideRadius2D(object, Npc.INTERACTION_DISTANCE))
|
||||
if ((object != null) && object.isNpc() && isInsideRadius2D(object, Npc.INTERACTION_DISTANCE))
|
||||
{
|
||||
final Npc npc = (Npc) object;
|
||||
quest.notifyEvent(event, npc, this);
|
||||
|
Reference in New Issue
Block a user