From cbb3cc464b62efc1a6bcfa4ae33188da79707cff Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 16 Jun 2014 20:25:48 +0100 Subject: [PATCH] Fixed a null error with loot_collection --- scripts/radial/item/collection/loot_collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/radial/item/collection/loot_collection.py b/scripts/radial/item/collection/loot_collection.py index c88a04e2..fce4e2c2 100644 --- a/scripts/radial/item/collection/loot_collection.py +++ b/scripts/radial/item/collection/loot_collection.py @@ -8,7 +8,7 @@ def createRadial(core, owner, target, radials): return def handleSelection(core, actor, target, option): - if option == 21 and target: + if option == 21 and target and target.getAttachment('CollectionItemName'): print (target.getAttachment('CollectionItemName')) core.collectionService.addCollection(actor, target.getAttachment('CollectionItemName')) core.objectService.useObject(actor, target)