post fix for charge items

This commit is contained in:
Manuel Simon Hirsig
2016-03-24 23:16:34 +01:00
parent 379219b13f
commit f09cbd8e1f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.9.19',
version = '2.9.20',
blizzard_ui_shown = false,
orig = {},
}
+2 -2
View File
@@ -45,8 +45,8 @@ function private.find_empty_slot()
end
function private.find_charge_item_slot()
for slot in private.item_slots(state.item_key) do
if private.charges(slot) == state.target_size then
for slot in Aux.util.inventory() do
if private.matching_item(slot) and private.charges(slot) == state.target_size then
return slot
end
end