From 3ab28fa6595ff2089acc6feaed5243a6f8c2f01e Mon Sep 17 00:00:00 2001 From: Cekis Date: Wed, 18 Jan 2017 18:20:53 +0000 Subject: [PATCH] Added logging for incorrect housing sign object id errors and bypassed java dump. --- .../compiled/game/script/library/player_structure.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/library/player_structure.java b/sku.0/sys.server/compiled/game/script/library/player_structure.java index 29aedc793..c38b5d0d8 100755 --- a/sku.0/sys.server/compiled/game/script/library/player_structure.java +++ b/sku.0/sys.server/compiled/game/script/library/player_structure.java @@ -2638,10 +2638,14 @@ public class player_structure extends script.base_script } if (!hasObjVar(structure, "player_structure.sign.id")) { - LOG("sissynoid", "Structure(" + structure + ") does not have a House Sign ObjVar"); + LOG("playerStructure", "Structure(" + structure + ") at location [" + getLocation(structure).toString() + "] does not have a House Sign ObjVar"); return; } obj_id signId = getObjIdObjVar(structure, "player_structure.sign.id"); + if(!isValidId(signId)){ + LOG("playerStructure", "Structure (" + structure + ") at location [" + getLocation(structure).toString() + "] has an invalid value for player_structure.sign.id."); + return; + } String signText = getName(signId); int indexOfAbandonedText = signText.indexOf(player_structure.CITY_ABANDONED_TEXT); if (indexOfAbandonedText > -1)