Skip to content

Commit

Permalink
fix: Fix datastore writer copying non-table scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Quenty committed Sep 21, 2023
1 parent 7894440 commit 3303b36
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 3303b36

Please sign in to comment.