summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-12-18 15:59:23 +0100
committerJeija <norrepli@gmail.com>2012-12-18 15:59:23 +0100
commit313b9adcd5fcfd400af7ed730a2829db3fe21015 (patch)
tree4fbb5a11f508318cf4fc355bd44b18e48ad6f382
parent13befe3bbab80faf62ad88188c26c7765e7a01a7 (diff)
downloadmesecons-313b9adcd5fcfd400af7ed730a2829db3fe21015.tar
mesecons-313b9adcd5fcfd400af7ed730a2829db3fe21015.tar.gz
mesecons-313b9adcd5fcfd400af7ed730a2829db3fe21015.tar.bz2
mesecons-313b9adcd5fcfd400af7ed730a2829db3fe21015.tar.xz
mesecons-313b9adcd5fcfd400af7ed730a2829db3fe21015.zip
Should fix this bug: bit.ly/XEy94j
-rw-r--r--mesecons/internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons/internal.lua b/mesecons/internal.lua
index de05bec..a4beb4a 100644
--- a/mesecons/internal.lua
+++ b/mesecons/internal.lua
@@ -46,7 +46,7 @@ function mesecon:receptor_get_rules(node)
if receptor.onstate == node.name or receptor.offstate == node.name then
if receptor.get_rules ~= nil then
return receptor.get_rules(node.param2)
- elseif mesecon.receptors[i].rules ~=nil then
+ elseif receptor.rules ~=nil then
return receptor.rules
else
return mesecon:get_rules("default")