# HG changeset patch # User IBBoard # Date 1251829287 0 # Node ID a6d1cc17ec334f074c88ba122d5f5492dd436a88 # Parent e9c4158394627c2671142b96e3a0a53185ec196b * Fix XPath query so that units get the right stats instead of just the first stats no-open-ticket diff -r e9c415839462 -r a6d1cc17ec33 api/Factories/Xml/WarFoundryXmlRaceFactory.cs --- a/api/Factories/Xml/WarFoundryXmlRaceFactory.cs Tue Sep 01 17:32:27 2009 +0000 +++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs Tue Sep 01 18:21:27 2009 +0000 @@ -140,7 +140,7 @@ } type.MainCategory = cat; - XmlElement statsElement = WarFoundryXmlFactoryUtils.SelectSingleElement(elem, "/race:race/race:units/race:unit/race:stats"); + XmlElement statsElement = WarFoundryXmlFactoryUtils.SelectSingleElement(elem, "race:stats"); Stats unitStats = ParseUnitStats(statsElement, type.GameSystem); type.SetUnitStats(unitStats); }