changeset 230:73da8d13ce69

Re #223: Use translations within the API * Fix build error caused by changing private field types no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Thu, 24 Dec 2009 10:33:20 +0000
parents 6083010a005c
children d1c90159547a
files api/Requirements/UnitRequiresAtLeastRequirement.cs
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/api/Requirements/UnitRequiresAtLeastRequirement.cs	Mon Dec 21 20:37:35 2009 +0000
+++ b/api/Requirements/UnitRequiresAtLeastRequirement.cs	Thu Dec 24 10:33:20 2009 +0000
@@ -59,9 +59,9 @@
 			FailedRequirement failure = null;
 			int count = requiredTypes.Length;
 			
-			for (int i = 0; i < count; i++)
+			foreach (UnitRequirementItem req in requiredTypes)
 			{
-				if (army.GetUnitTypeCount(requiredTypes[i]) < requiredCounts[i])
+				if (army.GetUnitTypeCount(req.UnitType) < req.Amount)
 				{				
 					failure = new FailedRequirement(this);
 					break;