Skip to content

Commit

Permalink
Fixed an issue in the backend of the addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed May 27, 2024
1 parent 82be7ed commit cd16ce7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/container_segments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,10 @@ function segmentClass:ResetAllCombatData()
for i = #segmentsTable, 1, -1 do
---@type combat
local thisCombatObject = segmentsTable[i]
Details:DestroyCombat(thisCombatObject)
--check if the combat is already destroyed
if (not thisCombatObject.__destroyed) then
Details:DestroyCombat(thisCombatObject)
end
end

--the current combat when finished will be moved to the first index of "segmentsTable", need the check if the current combat was already destroyed
Expand Down

0 comments on commit cd16ce7

Please sign in to comment.