Bugfix - indexOfNode should return int not uint
authorAndy Allan <gravitystorm@gmail.com>
Sat, 29 May 2010 17:43:40 +0000 (17:43 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sat, 29 May 2010 17:43:40 +0000 (17:43 +0000)
net/systemeD/halcyon/connection/Way.as

index 6a1d14fe9372fad6af33e49f21533b89a8d519ca..4b50303ee360734d255faeef5f72bf67490453bb 100644 (file)
@@ -73,7 +73,8 @@ package net.systemeD.halcyon.connection {
             return nodes.length + 1;
         }
         
-        public function indexOfNode(node:Node):uint {
+        // return the index of the Node, or -1 if not found
+        public function indexOfNode(node:Node):int {
             return nodes.indexOf(node);
         }