From 0bfb6cd625f20195b3f1f1b9973bbe546edab85a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 19 Feb 2021 14:20:04 +0100 Subject: [PATCH] fix NIL --- client/luascripts/data_mf_bin2eml.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/luascripts/data_mf_bin2eml.lua b/client/luascripts/data_mf_bin2eml.lua index 8312fc292..5f9354e55 100644 --- a/client/luascripts/data_mf_bin2eml.lua +++ b/client/luascripts/data_mf_bin2eml.lua @@ -115,8 +115,7 @@ local function main(args) local dumpdata = readdump(infile) -- The hex-data is now in ascii-format, - if dumpdata == NIL then return oops('Dumpfle not loaded') end - + if dumpdata == nil then return oops('Dumpfle not loaded') end -- But first, check the uid local uid = string.sub(dumpdata, 1, 8) @@ -124,8 +123,7 @@ local function main(args) -- Format some linebreaks dumpdata = convert_to_emulform(dumpdata) - if dumpdata == NIL then return oops('Dumpfle not loaded') end - + if dumpdata == nil then return oops('Dumpfle not loaded') end local outfile = io.open(output, 'w') if outfile == nil then