refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-30 00:35:40 +02:00
parent ecfafb71b1
commit 482abf8ef1
3 changed files with 101 additions and 105 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ function SetItemRef(...) temp=arg
if arg[3] ~= 'RightButton' or not index(active_tab, 'CLICK_LINK') or not strfind(arg[1], '^item:%d+') then
return orig.SetItemRef(unpack(arg))
end
for item_info in present(info.item(tonumber(select(3, strfind(arg[1], '^item:(%d+)'))))) do
for item_info in present(aux.info.item(tonumber(select(3, strfind(arg[1], '^item:(%d+)'))))) do
return active_tab.CLICK_LINK(item_info)
end
end