From 2c9afd2213788b9bbc8a37ff722b0efab508132c Mon Sep 17 00:00:00 2001 From: Cekis Date: Sat, 4 Feb 2017 17:46:03 +0000 Subject: [PATCH] Added check to meatlump camera when getting the admin list if the list is empty. --- .../theme_park/meatlump/meatlump_camera.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/theme_park/meatlump/meatlump_camera.java diff --git a/sku.0/sys.server/compiled/game/script/theme_park/meatlump/meatlump_camera.java b/sku.0/sys.server/compiled/game/script/theme_park/meatlump/meatlump_camera.java old mode 100644 new mode 100755 index 67ec47746..66cdf2ff9 --- a/sku.0/sys.server/compiled/game/script/theme_park/meatlump/meatlump_camera.java +++ b/sku.0/sys.server/compiled/game/script/theme_park/meatlump/meatlump_camera.java @@ -85,13 +85,14 @@ public class meatlump_camera extends script.base_script return false; } String[] adminList = getStringArrayObjVar(target, player_structure.VAR_ADMIN_LIST); - String str_player_id = "" + player; - for (int q = 0; q < adminList.length; q++) - { - if (adminList[q].equals(str_player_id)) - { - sendSystemMessage(player, SID_NO_DESTROY_YOUR_STUFF); - return false; + if(adminList != null && adminList.length > 0) { + String str_player_id = "" + player; + int adminSize = adminList.length; + for (int q = 0; q < adminSize; q++) { + if (adminList[q].equals(str_player_id)) { + sendSystemMessage(player, SID_NO_DESTROY_YOUR_STUFF); + return false; + } } } if (hasCompletedCollection(player, PHOTO_COLLECTION))