From 9a4e266c72bd2fa180ceb5df50666c58163d5776 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Wed, 12 Jun 2024 11:09:41 +0200 Subject: [PATCH] fix: shadowing definition of argument i --- .../[bpt_addons]/bpt_datastore/server/classes/datastore.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server-data/resources/[bpt_addons]/bpt_datastore/server/classes/datastore.lua b/server-data/resources/[bpt_addons]/bpt_datastore/server/classes/datastore.lua index a42ff7b37..99748e253 100644 --- a/server-data/resources/[bpt_addons]/bpt_datastore/server/classes/datastore.lua +++ b/server-data/resources/[bpt_addons]/bpt_datastore/server/classes/datastore.lua @@ -31,7 +31,7 @@ function CreateDataStore(name, owner, data) local path = stringsplit(key, ".") local obj = self.data - for i = 1, #path, 1 do + for _ = 1, #path, 1 do obj = obj[path[i]] end @@ -46,7 +46,7 @@ function CreateDataStore(name, owner, data) local path = stringsplit(key, ".") local obj = self.data - for i = 1, #path, 1 do + for _ = 1, #path, 1 do obj = obj[path[i]] end