diff api/Factories/Xml/WarFoundryXmlRaceFactory.cs @ 192:2d0c4248a915

Re #198: Add slots with counts to units * When loading files switch limit on LocalName not Name no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Oct 2009 20:54:10 +0000
parents 36adabb1c3ea
children 11bad32cfa06
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Thu Oct 29 20:46:42 2009 +0000
+++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs	Thu Oct 29 20:54:10 2009 +0000
@@ -185,7 +185,7 @@
 		{
 			AbstractLimit limit = null;
 			
-			switch(limitElem.Name)
+			switch(limitElem.LocalName)
 			{
 				case "percentageLimit":
 					double limitPercent = XmlTools.GetDoubleValueFromAttribute (limitElem, "limit");