Merge branch 'master' into history
[potlatch2.git] / net / systemeD / halcyon / connection / EntityCollection.as
index b6c0f4478fd440bdc4d188bbbcb001c4a16a003f..98d6034cf0f3266e50567e88029f8da625e6d2ac 100644 (file)
@@ -18,7 +18,10 @@ package net.systemeD.halcyon.connection {
                private var delayedEvents:Array = [];
 
         public function EntityCollection(entities:Array) {
-                       super(-1, 0, {}, true, NaN, null, null);
+                       var conn:Connection=entities[0].connection;
+                       // ** FIXME: this really is a very nasty way of finding the connection
+                       
+                       super(conn, -1, 0, {}, true, NaN, null, null);
             _entities = entities;
                        
                        //To avoid firing on every contained entity, we wait some short time before firing the events