mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed file existence check for rules.toml
This commit is contained in:
parent
b2b3fae5ce
commit
11c0903b95
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function rules.load()
|
|||
if string.find(fileName, ".toml") == string.len(fileName) - 4 then
|
||||
local fileDescriptor, fileLength = et.trap_FS_FOpenFile(fileName, et.FS_READ)
|
||||
|
||||
if fileLength ~= -1 then
|
||||
if fileLength == -1 then
|
||||
return 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue