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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6181 51575b47-30f0-44d4-a5cc-537603b46e54
parent d2bd328a
No related branches found
No related tags found
No related merge requests found
......@@ -1258,7 +1258,7 @@ function _M:onWear(o, bypass_set)
position = self:findQuickHotkey("Player: Specific", "inventory", name)
if not position then
local global_hotkeys = engine.interface.PlayerHotkeys.quickhotkeys["Player: Global"]
if global_hotkeys and global_hotkeys["talent"] then position = global_hotkeys["inventory"][name] end
if global_hotkeys and global_hotkeys["inventory"] then position = global_hotkeys["inventory"][name] end
end
else
position = self:findQuickHotkey(self.name, "inventory", name)
......@@ -1293,7 +1293,7 @@ function _M:onAddObject(o)
position = self:findQuickHotkey("Player: Specific", "inventory", name)
if not position then
local global_hotkeys = engine.interface.PlayerHotkeys.quickhotkeys["Player: Global"]
if global_hotkeys and global_hotkeys["talent"] then position = global_hotkeys["inventory"][name] end
if global_hotkeys and global_hotkeys["inventory"] then position = global_hotkeys["inventory"][name] end
end
else
position = self:findQuickHotkey(self.name, "inventory", name)
......
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