fix bug with drawing nodes in relations
authorRichard Fairhurst <richard@systemed.net>
Mon, 10 May 2010 11:22:04 +0000 (11:22 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 10 May 2010 11:22:04 +0000 (11:22 +0000)
net/systemeD/halcyon/connection/AMFConnection.as

index 5bfe7058ace4e77c598576d67a7d5970098f606b..03d5a6c399f528d8188499b803d5fcc60ef44068 100755 (executable)
@@ -139,11 +139,11 @@ package net.systemeD.halcyon.connection {
                        for each (var p:Array in nodesAMF) {
                 var nodeID:Number = Number(p[2]);
                 var nodeVersion:uint = uint(p[4]);
+                var lon:Number = Number(p[0]);
+                var lat:Number = Number(p[1]);
 
                 var node:Node = getNode(nodeID);
                 if ( node == null ) {
-                    var lon:Number = Number(p[0]);
-                    var lat:Number = Number(p[1]);
                     var nodeTags:Object = p[3];
                     node = new Node(nodeID, nodeVersion, nodeTags, true, lat, lon);
                 } else if (!node.loaded) {