summaryrefslogtreecommitdiffstats
path: root/lib/evendoors
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-07 11:59:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-07 11:59:07 +0200
commit1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2 (patch)
treed5805b75f17f2d329676268a089bd1c6459dfe33 /lib/evendoors
parent3b472b735061cc1de5768a5b0c64af2facc73bc9 (diff)
downloadedoors-ruby-1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2.zip
edoors-ruby-1dcb050420e6dd3f1b9bb43c1fb24b0c38286ca2.tar.gz
Board must delete merged particles from @spots
Diffstat (limited to 'lib/evendoors')
-rw-r--r--lib/evendoors/board.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/evendoors/board.rb b/lib/evendoors/board.rb
index bc74721..110b43f 100644
--- a/lib/evendoors/board.rb
+++ b/lib/evendoors/board.rb
@@ -29,6 +29,7 @@ module EvenDoors
if p.action!=EvenDoors::ACT_ERROR
p2 = @spots[p.link_value] ||= p
return if p2==p
+ @spots.delete p.link_value
p,p2 = p2,p if p.action==EvenDoors::ACT_FOLLOW
p.merge! p2
end