Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
diff FrmMain.cs @ 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 | b8de17271084 |
children | 526fefefb16b |
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); } }