Mercurial > repos > snowblizz-super-API-ideas
changeset 274:4ef761279ea2
Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
* Fix ability description loading by adding namespace alias
* Make use of utility method to help
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 Jun 2010 19:07:52 +0000 |
parents | 3157ac054461 |
children | 10fb73206bd2 |
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 Sat Jun 19 15:51:26 2010 +0000 +++ b/api/Factories/Xml/WarFoundryXmlRaceFactory.cs Sat Jun 19 19:07:52 2010 +0000 @@ -463,7 +463,7 @@ string id = elem.GetAttribute("id"); string name = elem.GetAttribute("name"); Ability ability = new Ability(id, name); - XmlNode node = elem.SelectSingleNode("description", WarFoundryXmlFactoryUtils.GetNamespaceManager()); + XmlNode node = WarFoundryXmlFactoryUtils.SelectSingleNode(elem, "race:description"); ability.Description = (node == null) ? "" : node.InnerText; race.AddAbility(ability); return ability;