Fixed a null error with loot_collection

This commit is contained in:
Treeku
2014-06-16 20:25:48 +01:00
parent 5a383708fe
commit cbb3cc464b
@@ -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)