From cd36566b09cb3303499aa6ea01d0c370b2766c0a Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 19 Jan 2017 01:34:33 +0000 Subject: [PATCH] Fixed issue causing an error when a beast finishes combat and its owner cannot be found. --- sku.0/sys.server/compiled/game/script/ai/beast.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/ai/beast.java diff --git a/sku.0/sys.server/compiled/game/script/ai/beast.java b/sku.0/sys.server/compiled/game/script/ai/beast.java old mode 100644 new mode 100755 index 67ce12e0e..3ff3a23be --- a/sku.0/sys.server/compiled/game/script/ai/beast.java +++ b/sku.0/sys.server/compiled/game/script/ai/beast.java @@ -448,7 +448,9 @@ public class beast extends script.base_script } if (isIdValid(master)) { - setHomeLocation(self, getLocation(master)); + location masterLoc = getLocation(master); + if(isValidLocation(masterLoc, 1.0f)) + setHomeLocation(self, masterLoc); } return SCRIPT_CONTINUE; }