From b1c4398d941ff1ffabf1f028550c99dc54352977 Mon Sep 17 00:00:00 2001 From: 3aGl3 Date: Wed, 16 Jan 2019 22:02:15 +0100 Subject: [PATCH] Fixed encapsulation of two Item definitions --- NativeUI/NativeUI.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)