Store bug fixes

This commit is contained in:
Cooldude2606
2019-10-17 23:23:51 +01:00
parent 382d664975
commit f44ab9b44f
5 changed files with 32 additions and 17 deletions

View File

@@ -277,7 +277,9 @@ function Store.clear(store,key)
-- Check if there is a key being used
if key then
data_store[store][key] = nil
if type(data_store[store]) == 'table' then
data_store[store][key] = nil
end
else
data_store[store] = nil
end