Skip to content
Snippets Groups Projects
Commit f2707217 authored by dg's avatar dg
Browse files

Dropping items from the inventory dialog will correctly update the title

git-svn-id: http://svn.net-core.org/repos/t-engine4@2165 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8dd39e13
No related branches found
No related tags found
No related merge requests found
......@@ -865,8 +865,9 @@ function _M:setupCommands()
d = self.player:showEquipInven(titleupdator(), nil, function(o, inven, item, button, event)
if not o then return end
local ud = require("mod.dialogs.UseItemDialog").new(event == "button", self.player, o, item, inven, function(_, _, _, stop)
d:generateList()
d.title = titleupdator()
d:generate()
d:generateList()
if stop then self:unregisterDialog(d) end
end)
self:registerDialog(ud)
......
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