Fixed an issue in the backend of the addon
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user