# HG changeset patch # User IBBoard # Date 1246131629 0 # Node ID 041f05e5649644b7eb1238875859d1c0dce088a5 # Parent 7c366fe55635be3f95314dd4fe3487d58e3696a7 Re #90: Stop new units showing up twice * Pass ArmyCategory to CreateAndAddUnitCommand diff -r 7c366fe55635 -r 041f05e56496 FrmMain.cs --- 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); } }