Fixed issue that occurs when a smuggler tries to inspect a corpse for contraband that doesn't have a loot table defined.

This commit is contained in:
Cekis
2018-03-23 15:59:19 -07:00
committed by CekisSWG
parent 921fc1d6de
commit 8bbdef1191
+1 -1
View File
@@ -890,7 +890,7 @@ public class smuggler extends script.base_script
return;
}
String strLootTable = getStringObjVar(target, "loot.lootTable");
if (!strLootTable.startsWith("npc") && (!strLootTable.startsWith("droid")))
if (strLootTable == null || (!strLootTable.startsWith("npc") && (!strLootTable.startsWith("droid"))))
{
sendSystemMessage(player, new string_id("smuggler/messages", "contraband_not_possible"));
return;