changeset 114:a143b077a825

Re #54: Add Army support to WarFoundryFactory * Make sure that race and sub-race IDs are lower case so that we can find them when we load
author IBBoard <dev@ibboard.co.uk>
date Sat, 22 Aug 2009 18:35:03 +0000
parents 5ebbffd4a05f
children d0c60b3204c1
files api/WarFoundryLoader.cs
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/api/WarFoundryLoader.cs	Sat Aug 22 18:22:40 2009 +0000
+++ b/api/WarFoundryLoader.cs	Sat Aug 22 18:35:03 2009 +0000
@@ -720,8 +720,10 @@
 			Race race = null;
 			
 			systemID = systemID.ToLower();
+			raceID = raceID.ToLower();
+			raceSubID = raceSubID.ToLower();
 
-			Dictionary<string, Dictionary<string, Race>> races;
+			Dictionary<string, Dictionary<string, Race>> races;	
 			racesTable.TryGetValue(systemID, out races);
 
 			if (races!=null)