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

fix use scroll of ID while in inventory bug

git-svn-id: http://svn.net-core.org/repos/t-engine4@462 51575b47-30f0-44d4-a5cc-537603b46e54
parent 32edf315
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,8 @@ end
function _M:use()
if not self.list[self.sel] then return end
game:unregisterDialog(self)
local act = self.list[self.sel].action
if act == "use" then self.actor:playerUseItem(self.object, self.item)
......@@ -51,8 +53,6 @@ function _M:use()
end
self.onuse(self.inven, self.item, self.object)
game:unregisterDialog(self)
end
function _M:generateList()
......
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