Changeset 148

Show
Ignore:
Timestamp:
06/27/09 14:40:29 (9 months ago)
Author:
ibboard
Message:

Re #90: Stop new units showing up twice

  • Pass ArmyCategory to CreateAndAddUnitCommand
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • IBBoard.WarFoundry.GUI.WinForms/trunk/FrmMain.cs

    r142 r148  
    11021102            if (dr == DialogResult.OK) 
    11031103            { 
    1104                 CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, CurrentArmy); 
     1104                CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, CurrentArmy.GetCategory(cat)); 
    11051105                commandStack.Execute(cmd); 
    11061106            }