Skip to content
Snippets Groups Projects
Commit b3f36926 authored by Novatux's avatar Novatux
Browse files

Fix crash if metarule not found

parent ae557d1c
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,13 @@ end
function mesecon:rule2meta(findrule, allrules)
local index = mesecon:rule2metaindex(findrule, allrules)
if index == nil then return allrules end
if index == nil then
if allrules[1].x then
return allrules
else
return {}
end
end
return allrules[index]
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment