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) {