From 45ad154c87bf9cbb90b92a1b3a2eecd680de3307 Mon Sep 17 00:00:00 2001 From: cracyc Date: Thu, 29 Sep 2016 20:36:05 -0500 Subject: ui/selgame: fix crash (nw) --- plugins/data/load_dat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/data/load_dat.lua') diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua index e6d0c5d63b8..3e9f88dab80 100644 --- a/plugins/data/load_dat.lua +++ b/plugins/data/load_dat.lua @@ -84,7 +84,7 @@ function datfile.open(file, vertag) end fh:seek("set", data[tag1][tag2][set]) for line in fh:lines() do - if line == "$end" then + if line:sub(1, 4) == "$end" then return table.concat(output, "\n") end output[#output + 1] = line -- cgit v1.2.3