From 91044174eae243da83142d3d4c26b0bc5e89face Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:59:25 +0200 Subject: [PATCH] fix: accessing undefined variable i --- .../[bpt_addons]/bpt_datastore/server/classes/datastore.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 066b1352c..a42ff7b37 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 @@ -4,7 +4,7 @@ function stringsplit(inputstr, sep) end local t = {} - i = 1 + local i = 1 for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do t[i] = str i = i + 1