Skip to content
Snippets Groups Projects
Commit 97c7072b authored by Alex Ksandra's avatar Alex Ksandra
Browse files

typo fixes

parent f6a24bfd
No related branches found
No related tags found
No related merge requests found
......@@ -72,16 +72,16 @@ function _M:init(title, equip_actor, filter, action, on_select, inven_actor)
self.equip_actor:doWearTinker(wear_inven, wear_item, wear_o, base_inven, base_item, base_o, true)
end
else
local inven = self.equip_actor:getInven(wear_inven)
if self.equip_actor:canWearObject(wear_o, inven.name) then
local inven = ui.inven and self.equip_actor:getInven(ui.inven)
if inven and self.equip_actor:canWearObject(wear_o, inven.name) then
-- Force inventory and item
self.equip_actor:doWear(wear_inven, wear_item, wear_o, self.inven_actor, ui.inven, ui.item)
ui:forceUpdate()
else
self.equip_actor:doWear(wear_inven, wear_item, wear_o, self.inven_actor)
end
end
self.c_inven:generateList()
ui:forceUpdate()
end
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment