changeset 25:041f05e56496

Re #90: Stop new units showing up twice * Pass ArmyCategory to CreateAndAddUnitCommand
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jun 2009 19:40:29 +0000
parents 7c366fe55635
children d9aca1dc95d2
files FrmMain.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/FrmMain.cs	Sat Jun 27 19:01:59 2009 +0000
+++ b/FrmMain.cs	Sat Jun 27 19:40:29 2009 +0000
@@ -1101,7 +1101,7 @@
 
 			if (dr == DialogResult.OK)
 			{
-				CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, CurrentArmy);
+				CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, CurrentArmy.GetCategory(cat));
 				commandStack.Execute(cmd);
 			}
 		}