Bugfix - if index is given as -1, insert after last member rather than before. See...
authorAndy Allan <andy@gravitystorm.co.uk>
Tue, 29 Mar 2011 19:29:13 +0000 (20:29 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Tue, 29 Mar 2011 19:29:13 +0000 (20:29 +0100)
net/systemeD/halcyon/connection/actions/AddMemberToRelationAction.as

index 92b1ebd..7f4b729 100644 (file)
@@ -17,6 +17,8 @@ package net.systemeD.halcyon.connection.actions {
         }
         
         public override function doAction():uint {
+            if ( index == -1 )
+                index = memberList.length;
             memberList.splice(index, 0, member);
             member.entity.addParent(rel);
             markDirty();