Skip to content

Commit

Permalink
Merge pull request #413 from Quenty/users/quenty/datastore_fix
Browse files Browse the repository at this point in the history
fix: Fix datastore writer copying non-table scenario
  • Loading branch information
imagerymartin authored Sep 21, 2023
2 parents 7894440 + 3303b36 commit d2a8a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datastore/src/Server/Modules/DataStoreWriter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function DataStoreWriter:_writeMergeWriters(original)

-- Handle empty table scenario..
-- This would also imply our original is nil somehow...
if next(copy) == nil then
if type(copy) == "table" and next(copy) == nil then
if type(self._saveDataSnapshot) ~= "table" then
return nil
end
Expand Down

0 comments on commit d2a8a54

Please sign in to comment.