From a59ef75252babed5f50d9450189419a76b91134a Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 2 Jun 2024 12:31:25 +0200 Subject: [PATCH] fix: shadowing upvalue argument --- .../server/classes/addoninventory.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua b/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua index d2f1718a6..939b63072 100644 --- a/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua +++ b/server-data/resources/[bpt_addons]/bpt_addoninventory/server/classes/addoninventory.lua @@ -1,9 +1,10 @@ -function CreateAddonInventory(name, owner, items) - local self = {} +local self = {} - self.name = name - self.owner = owner - self.items = items +self.name = name +self.owner = owner +self.items = items + +function CreateAddonInventory() function self.addItem(name, count) local item = self.getItem(name)