Skip to content

Commit

Permalink
Fixed files.loadFromCFG not always returning two arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Smit committed Mar 15, 2017
1 parent 8034b9a commit 90c5af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luamods/wolfadmin/util/files.lua
Expand Up @@ -40,7 +40,7 @@ function files.loadFromCFG(fileName, idExpr)
local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ)

if fileLength == -1 then
return nil
return 0, {}
end

local fileString = et.trap_FS_Read(fileDescriptor, fileLength).."\n\n"
Expand Down

0 comments on commit 90c5af8

Please sign in to comment.