diff --git a/NativeUI/NativeUI.lua b/NativeUI/NativeUI.lua index 487c9a2..3c44cb3 100644 --- a/NativeUI/NativeUI.lua +++ b/NativeUI/NativeUI.lua @@ -3257,7 +3257,7 @@ function UIMenu:Draw() if #self.Items <= self.Pagination.Total + 1 then local ItemOffset = self.Subtitle.ExtraY - 37 + WindowHeight for index = 1, #self.Items do - Item = self.Items[index] + local Item = self.Items[index] Item:Position(ItemOffset) Item:Draw() ItemOffset = ItemOffset + self:CalculateItemHeightOffset(Item) @@ -3266,7 +3266,7 @@ function UIMenu:Draw() local ItemOffset = self.Subtitle.ExtraY - 37 + WindowHeight for index = self.Pagination.Min + 1, self.Pagination.Max, 1 do if self.Items[index] then - Item = self.Items[index] + local Item = self.Items[index] Item:Position(ItemOffset) Item:Draw() ItemOffset = ItemOffset + self:CalculateItemHeightOffset(Item)