Replacing table.wipe with Details:Destroy()

This commit is contained in:
Tercio Jose
2023-05-22 15:31:29 -03:00
parent fa0d1e1d08
commit 0cdfa2b900
40 changed files with 1205 additions and 1322 deletions
+4 -4
View File
@@ -263,7 +263,7 @@
--check if is a spell target custom
if (custom_object:IsSpellTarget()) then
table.wipe(classCustom._TargetActorsProcessed)
Details:Destroy(classCustom._TargetActorsProcessed)
classCustom._TargetActorsProcessedAmt = 0
classCustom._TargetActorsProcessedTotal = 0
classCustom._TargetActorsProcessedTop = 0
@@ -736,8 +736,8 @@
end
function classCustom:WipeCustomActorContainer()
table.wipe(self._ActorTable)
table.wipe(self._NameIndexTable)
Details:Destroy(self._ActorTable)
Details:Destroy(self._NameIndexTable)
end
function classCustom:GetValue (actor)
@@ -1071,7 +1071,7 @@
end
function _detalhes:ResetCustomFunctionsCache()
table.wipe(_detalhes.custom_function_cache)
Details:Destroy(_detalhes.custom_function_cache)
end
function _detalhes.refresh:r_atributo_custom()