Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
changeset 14:abbf8a3ac431
Re #90: Stop new units showing up twice
* Pass ArmyCategory to CreateAndAddUnitCommand
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Jun 2009 19:39:41 +0000 |
parents | 6b2c8e55564a |
children | 85db2c9a1546 |
files | FrmMainWindow.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMainWindow.cs Sat Jun 27 19:05:57 2009 +0000 +++ b/FrmMainWindow.cs Sat Jun 27 19:39:41 2009 +0000 @@ -411,7 +411,7 @@ if (response==ResponseType.Ok) { - CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, WarFoundryCore.CurrentArmy); + CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, WarFoundryCore.CurrentArmy.GetCategory(cat)); commandStack.Execute(cmd); }