Skip to content

Commit

Permalink
Fixed a bug that caused a total freeze (and crash) in some cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed May 22, 2023
1 parent 61bed39 commit edaf28d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions widgets/Section.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ function sectionProto:OnAcquire(container, name, category)
self.name = name
self.category = category or name
self.key = BuildSectionKey(name, category)
self.total = 0
self.height = 0
self:SetSizeInSlots(0, 0)
self.count = 0
self.container = container
Expand All @@ -144,6 +146,8 @@ function sectionProto:OnRelease()
self.name = nil
self.category = nil
self.container = nil
self.total = 0
self.height = 0
end

function sectionProto:UpdateFont()
Expand Down

0 comments on commit edaf28d

Please sign in to comment.