From 79ac94d84a4e86c698a8c641d68c7fd3daadec70 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 20 Nov 2014 11:59:49 -0800 Subject: [PATCH] Fixed busted item crash. --- app/lib/surface/LankBoss.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/surface/LankBoss.coffee b/app/lib/surface/LankBoss.coffee index a6703d99e..5db9e5ca3 100644 --- a/app/lib/surface/LankBoss.coffee +++ b/app/lib/surface/LankBoss.coffee @@ -224,8 +224,8 @@ module.exports = class LankBoss extends CocoClass item = @world.getThangByID itemID unless item.equipped console.log thang.id, 'equipping', item, 'in', thang.slot, 'Surface-side, but it cannot equip?' unless item.equip - item.equip() - itemsJustEquipped.push item + item.equip?() + itemsJustEquipped.push item if item.equip return itemsJustEquipped cacheObstacles: (updatedObstacles=null) ->