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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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