diff options
author | 2016-09-29 20:36:05 -0500 | |
---|---|---|
committer | 2016-09-29 20:36:43 -0500 | |
commit | 45ad154c87bf9cbb90b92a1b3a2eecd680de3307 (patch) | |
tree | 37011bf3382bafdc331cfd249ad64578f1bc385c /plugins/data/load_dat.lua | |
parent | 78d4e6db5b71c3ff2ce193ab9177c64062b37063 (diff) |
ui/selgame: fix crash (nw)
Diffstat (limited to 'plugins/data/load_dat.lua')
-rw-r--r-- | plugins/data/load_dat.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |