Skip to content

Commit

Permalink
Fix #63, doesn't remove the legacy code that triggered it though
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeija committed Jan 3, 2015
1 parent 011543a commit f1e37fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesecons/util.lua
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f1e37fb

Please sign in to comment.