From a60d6bd848a00aed29a92bd11d803eb351c8ee16 Mon Sep 17 00:00:00 2001 From: Cekis Date: Sun, 29 Jan 2017 06:41:26 +0000 Subject: [PATCH] Fixed issue in Echo Base where quest would not update properly. --- sku.0/sys.server/compiled/game/script/library/utils.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/library/utils.java b/sku.0/sys.server/compiled/game/script/library/utils.java index 2a6f54fd2..009f90d02 100755 --- a/sku.0/sys.server/compiled/game/script/library/utils.java +++ b/sku.0/sys.server/compiled/game/script/library/utils.java @@ -6684,12 +6684,15 @@ public class utils extends script.base_script return null; } location testLoc; - for (obj_id allObject : allObjects) { - testLoc = getLocation(trial.getTop(allObject)); + for (obj_id obj : allObjects) { + testLoc = getLocation(trial.getTop(obj)); + if(testLoc == null || !isValidLocation(testLoc, 1f)){ + continue; + } if (testLoc.x < x1 || testLoc.x > x2 || testLoc.z < z1 || testLoc.z > z2) { continue; } - objectsInArea.add(allObject); + objectsInArea.add(obj); } if (objectsInArea.size() == 0) {