mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-22 12:21:43 +00:00
Fixed files.loadFromCFG not always returning two arguments
This commit is contained in:
parent
8034b9ab91
commit
90c5af82dc
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ function files.loadFromCFG(fileName, idExpr)
|
||||||
local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ)
|
local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ)
|
||||||
|
|
||||||
if fileLength == -1 then
|
if fileLength == -1 then
|
||||||
return nil
|
return 0, {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local fileString = et.trap_FS_Read(fileDescriptor, fileLength).."\n\n"
|
local fileString = et.trap_FS_Read(fileDescriptor, fileLength).."\n\n"
|
||||||
|
|
Loading…
Reference in a new issue