changeset 493:6b0ca39025ed

Re #423: Support nested units in GTK UI * Swap order of removing unit from parent so that we validation at the appropriate time
author IBBoard <dev@ibboard.co.uk>
date Mon, 06 Aug 2012 20:44:26 +0100
parents 4e1895ef9269
children 4f01fdc3bb41
files API/Commands/CreateAndAddUnitCommand.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/API/Commands/CreateAndAddUnitCommand.cs	Sun Aug 05 20:55:35 2012 +0100
     1.2 +++ b/API/Commands/CreateAndAddUnitCommand.cs	Mon Aug 06 20:44:26 2012 +0100
     1.3 @@ -64,8 +64,8 @@
     1.4  
     1.5  		public override void Undo()
     1.6  		{
     1.7 +			addedUnit.ParentUnit = null;
     1.8  			armyCat.RemoveUnit(addedUnit);
     1.9 -			addedUnit.ParentUnit = null;
    1.10  		}
    1.11  
    1.12  		public override string Name