Mercurial > repos > snowblizz-super-API-ideas
changeset 133:a6d1cc17ec33
* Fix XPath query so that units get the right stats instead of just the first stats
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 01 Sep 2009 18:21:27 +0000 |
parents | e9c415839462 |
children | 57f7b80757ea |
files | api/Factories/Xml/WarFoundryXmlRaceFactory.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }