Skip to content

Commit dca4706

Browse files
committedJan 3, 2015
Fix #197, doesn't remove the legacy code that triggered it though
1 parent 011543a commit dca4706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎mesecons/util.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ end
5959

6060
function mesecon.rule2metaindex(findrule, allrules)
6161
--get the metarule the rule is in, or allrules
62-
6362
if allrules[1].x then
6463
return nil
6564
end
@@ -78,6 +77,8 @@ function mesecon.rule2metaindex(findrule, allrules)
7877
end
7978

8079
function mesecon.rule2meta(findrule, allrules)
80+
if #allrules == 0 then return {} end
81+
8182
local index = mesecon.rule2metaindex(findrule, allrules)
8283
if index == nil then
8384
if allrules[1].x then

0 commit comments

Comments
 (0)
Please sign in to comment.