diff api/WarFoundryLoader.cs @ 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 863518044d38
children 32b774f24017
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)