diff --git a/classes/container_segments.lua b/classes/container_segments.lua index 64077f68..c6085f48 100644 --- a/classes/container_segments.lua +++ b/classes/container_segments.lua @@ -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