# HG changeset patch # User IBBoard # Date 1335019586 -3600 # Node ID e47cb422aac12d9813ae0455a31fc36c0f09711a # Parent 0d032c04210edbe61db04fc94efb1b71a417bec6 * Fix crashes caused by MonoDevelop not rejecting a C# 4.0 feature used in a .Net 2.0 project (optional parameters) diff -r 0d032c04210e -r e47cb422aac1 API/Commands/CreateAndAddUnitCommand.cs --- a/API/Commands/CreateAndAddUnitCommand.cs Mon Apr 16 20:47:14 2012 +0100 +++ b/API/Commands/CreateAndAddUnitCommand.cs Sat Apr 21 15:46:26 2012 +0100 @@ -16,7 +16,12 @@ private Unit addedUnit; private Unit parentUnit; - public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo, Unit parentUnit = null) + public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo) : base(toAdd, armyCatTo, null) + { + //Do nothing special + } + + public CreateAndAddUnitCommand(UnitType toAdd, ArmyCategory armyCatTo, Unit parentUnit) { addedUnitType = toAdd; armyCat = armyCatTo;