From 90c5af82dc684815aa3a877707c5bfb4c56bda9f Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Wed, 15 Mar 2017 13:04:46 +0100 Subject: [PATCH] Fixed files.loadFromCFG not always returning two arguments --- luamods/wolfadmin/util/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luamods/wolfadmin/util/files.lua b/luamods/wolfadmin/util/files.lua index 0d9374a..e4d7ff4 100644 --- a/luamods/wolfadmin/util/files.lua +++ b/luamods/wolfadmin/util/files.lua @@ -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"