delete points from ways
[potlatch2.git] / net / systemeD / halcyon / connection / Way.as
index de13b55c17f474e9d4ba829297547109789b92c1..11e30ddc6e0afd12ea77a36508a67fc3631b0092 100644 (file)
@@ -60,7 +60,7 @@ package net.systemeD.halcyon.connection {
 
                public function removeNode(node:Node):void {
                        var i:int;
-                       while ((i=nodes.indexOf(i))>-1) {
+                       while ((i=nodes.indexOf(node))>-1) {
                                nodes.splice(i,1);
                dispatchEvent(new WayNodeEvent(Connection.WAY_NODE_REMOVED, node, this, i));
                        }