Fixed files.loadFromCFG not always returning two arguments

This commit is contained in:
Timo Smit 2017-03-15 13:04:46 +01:00
parent 8034b9ab91
commit 90c5af82dc

View file

@ -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"