Skip to content

Commit

Permalink
Fix failed removal
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Sep 29, 2021
1 parent a1578ae commit 4db4bc0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SkilletQueue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,16 @@ function Skillet:StopCast(spell, success)
self:AdjustInventory()
else
DA.DEBUG(0,"StopCast without success")
qpos = self.processingPosition
self.queueCasting = false
self.processingSpell = nil
self.processingPosition = nil
self.processingCommand = nil
qpos = self.processingPosition or 1
self.reagentsChanged = {}
self:RemoveFromQueue(qpos)
DA.DEBUG(0,"removed failed queue command at "..tostring(qpos))
if qpos then
self.reagentsChanged = {}
self:RemoveFromQueue(qpos)
DA.DEBUG(0,"removed failed queue command at "..tostring(qpos))
end
end
else
DA.DEBUG(0,"StopCast called with "..tostring(spell).." ~= "..tostring(self.processingSpell))
Expand Down

0 comments on commit 4db4bc0

Please sign in to comment.