summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/room.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/evendoors/room.rb')
-rw-r--r--lib/evendoors/room.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/evendoors/room.rb b/lib/evendoors/room.rb
index f865136..caaf565 100644
--- a/lib/evendoors/room.rb
+++ b/lib/evendoors/room.rb
@@ -121,8 +121,8 @@ module EvenDoors
end
elsif (p.room=~/^#{path}\/(.*)/)==0
room, *more = $1.split EvenDoors::PATH_SEP
- if r=@spots[room]
- r.route_p p
+ if child=@spots[room]
+ child.route_p p
else
p.error! EvenDoors::ERROR_ROUTE_DDWR
end