From 51a9d02b8e44be58a49270d0e701c8bb552ccf56 Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 19 Jan 2017 19:07:01 +0000 Subject: [PATCH] Fixed issue resulting in error if killed creature was not part of a collection. --- sku.0/sys.server/compiled/game/script/library/xp.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sku.0/sys.server/compiled/game/script/library/xp.java b/sku.0/sys.server/compiled/game/script/library/xp.java index ee791e623..7804b1870 100755 --- a/sku.0/sys.server/compiled/game/script/library/xp.java +++ b/sku.0/sys.server/compiled/game/script/library/xp.java @@ -909,7 +909,9 @@ public class xp extends script.base_script params.put("creatureName", creatureName); params.put("location", getLocation(target)); params.put("socialGroup", ai_lib.getSocialGroup(target)); - params.put("col_faction", dataTableGetString(CREATURES_TABLE, creatureName, "col_faction")); + // only put a value in col_faction if one is found in the datatable. + if(dataTableGetString(CREATURES_TABLE, creatureName, "col_faction") != null) + params.put("col_faction", dataTableGetString(CREATURES_TABLE, creatureName, "col_faction")); params.put("difficultyClass", dataTableGetInt(CREATURES_TABLE, creatureName, "difficultyClass")); params.put("target", target); if (hasObjVar(target, "quest_spawner.spawned_by"))