From 2ad9e06ea31b7678084e0544b7f4b294e47e473e Mon Sep 17 00:00:00 2001 From: Cekis Date: Fri, 3 Feb 2017 17:13:57 +0000 Subject: [PATCH] Prevented null pointer from happening when a vendor attempts to path away from its target. --- sku.0/sys.server/compiled/game/script/library/ai_lib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/library/ai_lib.java b/sku.0/sys.server/compiled/game/script/library/ai_lib.java index 8df932e6b..c644aaacf 100755 --- a/sku.0/sys.server/compiled/game/script/library/ai_lib.java +++ b/sku.0/sys.server/compiled/game/script/library/ai_lib.java @@ -918,7 +918,7 @@ public class ai_lib extends script.base_script } location myLoc = getLocation(npc); location targetLoc = getLocation(target); - if(isValidLocation(myLoc) && isValidLocation(targetLoc)) { + if(isValidLocation(myLoc, 0f) && isValidLocation(targetLoc, 0f)) { if (myLoc.x < targetLoc.x) { myLoc.x -= rand(20f, 40f); } else {