Bug Fixed

This commit is contained in:
Tercio Jose
2023-07-18 18:19:38 -03:00
parent bfbe4ca852
commit bfdce8071b
6 changed files with 29 additions and 592 deletions
+11 -2
View File
@@ -1908,8 +1908,17 @@
end
if (not bForceRefresh) then --update player details window if opened
if (breakdownWindowFrame.ativo) then
return breakdownWindowFrame.jogador:MontaInfo()
if (Details.BreakdownWindowFrame:IsShown()) then
---@type actor
local actorObject = Details:GetActorObjectFromBreakdownWindow()
if (actorObject and not actorObject.__destroyed) then
return actorObject:MontaInfo() --MontaInfo a nil value
else
Details:Msg("Invalid actor object on breakdown window.")
if (actorObject.__destroyed) then
Details:Msg("Invalidation Reason:", actorObject.__destroyedBy)
end
end
end
end
return
+8 -3
View File
@@ -639,7 +639,7 @@ local classTypeUtility = Details.atributos.misc
end
end
---start/restart the internal garbage collector runtime
---start/restart the internal garbage collector runtime ~garbage
---@param bShouldForceCollect boolean if true, the garbage collector will run regardless of the time interval
---@param lastEvent unixtime no call is passing lastEvent at the moment
function Details222.GarbageCollector.RestartInternalGarbageCollector(bShouldForceCollect, lastEvent)
@@ -797,13 +797,18 @@ local classTypeUtility = Details.atributos.misc
end
actorContainer:Cleanup()
--refresh the breakdown window
if (Details.BreakdownWindowFrame:IsShown()) then
Details222.BreakdownWindow.RefreshPlayerScroll()
end
end
actorContainer.need_refresh = true
end
end --end of containerId loop
return amountCleaned
end
end --end of collectGarbage function
---run the garbage collector
---@param overriteLastEvent unixtime