Little fix in read_config

This commit is contained in:
Antonin Décimo
2015-06-24 01:50:47 +02:00
parent 2ce23ea032
commit 1d6443044f

View File

@@ -185,14 +185,13 @@ for _, f in ipairs(fields) do
t[f] = t[f] or "" t[f] = t[f] or ""
end end
t.os = t.os or {}
for _, v in ipairs(t.os) do for _, v in ipairs(t.os) do
t.os[v] = {} t.os[v] = {}
end end
if os == "default" then if os == "default" then
if not t.os then t.os = {} end t.os.default = {}
if not t.os.love then t.os.love = {} end
t.os.default = t.os.love
end end
if t.os[os] then if t.os[os] then