change relation.appendMember to use the undo system, and update various places as...
[potlatch2.git] / net / systemeD / halcyon / connection / actions / RemoveEntityFromRelationAction.as
index fc41dea3720a28c7b4ef9af7170c91405fc6c021..357577057cc6695c9164fdb552c5ebc8f508e514 100644 (file)
@@ -41,7 +41,7 @@ package net.systemeD.halcyon.connection.actions {
             member.addParent(entity);
             
             var last:int = 0;
-            for (var i:uint = removedMembers.length - 1; i >= 0; i++) {
+            for (var i:int = removedMembers.length - 1; i >= 0; i--) {
                 var removed:RelationMember = removedMembers[i];
                 var index:int = memberRemovedFrom[i];
                 memberList.splice(index, 0, removed);