Mercurial > repos > IBBoard.WarFoundry.API
changeset 122:571eee2b7b30
Re #54: Add army loading
* Fix army loading by writing out the correct ID for the equipment items when we save
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 23 Aug 2009 11:07:47 +0000 |
parents | 53654e938982 |
children | 52e8c3cdde10 |
files | api/Factories/Xml/WarFoundryXmlSaver.cs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlSaver.cs Sun Aug 23 11:05:37 2009 +0000 +++ b/api/Factories/Xml/WarFoundryXmlSaver.cs Sun Aug 23 11:07:47 2009 +0000 @@ -145,7 +145,7 @@ private XmlElement CreateEquipmentElement(UnitEquipmentItem item, Unit unit, XmlDocument doc) { XmlElement equipmentItemElem = doc.CreateElement("equipItem"); - equipmentItemElem.SetAttribute("id", item.EquipmentItemID); + equipmentItemElem.SetAttribute("id", item.ID); equipmentItemElem.SetAttribute("amount", unit.GetEquipmentAmount(item).ToString()); equipmentItemElem.SetAttribute("amountType", unit.GetEquipmentAmountIsRatio(item) ? "ratio" : "fixed"); return equipmentItemElem;