1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-12-03 12:58:06 +00:00

Fix save() sPath param.

This commit is contained in:
Wojbie
2020-04-21 18:28:55 +02:00
committed by GitHub
parent 3b7b845930
commit 463635a459

View File

@@ -228,7 +228,7 @@ end
-- @see settings.load
function save(sPath)
expect(1, sPath, "string", "nil")
local file = fs.open(".settings", "w")
local file = fs.open(sPath or ".settings", "w")
if not file then
return false
end