changeset 474:e47cb422aac1

* Fix crashes caused by MonoDevelop not rejecting a C# 4.0 feature used in a .Net 2.0 project (optional parameters)
author IBBoard <dev@ibboard.co.uk>
date Sat, 21 Apr 2012 15:46:26 +0100
parents 0d032c04210e
children b2c818833841
files API/Commands/CreateAndAddUnitCommand.cs
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;