From d2b7f627a77193efb87696c247ec9b0b199770c5 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 2 Jun 2024 12:22:32 +0200 Subject: [PATCH] fix: shadowing upvalue argument --- .../bpt_addoninventory/server/classes/addoninventory.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 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 e16004f01..d2f1718a6 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 @@ -68,7 +68,7 @@ function CreateAddonInventory(name, owner, items) function self.saveItem(name, count) if self.owner == nil then MySQL.update( - 'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name', + 'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name', { ['@inventory_name'] = self.name, ['@item_name'] = name, @@ -76,7 +76,7 @@ function CreateAddonInventory(name, owner, items) }) else MySQL.update( - 'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name AND owner = @owner', + 'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name AND owner = @owner', { ['@inventory_name'] = self.name, ['@item_name'] = name,