small bugfix for charge items

This commit is contained in:
Manuel Simon Hirsig
2015-09-26 01:31:12 +02:00
parent 0b06156f52
commit a731226ac5
+2 -2
View File
@@ -47,7 +47,7 @@ function find_empty_slot()
end
end
function find_charge_item_slot(name, charges)
function find_charges_item_slot(name, charges)
for slot in item_slots(name) do
if item_charges(slot) == charges then
return slot
@@ -189,7 +189,7 @@ function Aux.stack.start(name, size, callback)
if not target_slot then
Aux.stack.stop()
elseif item_charges(target_slot) then
state.target_slot = find_charges_item(name, size)
state.target_slot = find_charges_item_slot(name, size)
Aux.stack.stop()
end
end