Fix #197, doesn't remove the legacy code that triggered it though

This commit is contained in:
Jeija 2015-01-03 09:57:46 +01:00
parent 011543a782
commit dca4706c7f

@ -59,7 +59,6 @@ end
function mesecon.rule2metaindex(findrule, allrules)
--get the metarule the rule is in, or allrules
if allrules[1].x then
return nil
end
@ -78,6 +77,8 @@ function mesecon.rule2metaindex(findrule, allrules)
end
function mesecon.rule2meta(findrule, allrules)
if #allrules == 0 then return {} end
local index = mesecon.rule2metaindex(findrule, allrules)
if index == nil then
if allrules[1].x then