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 diff
     1.1 --- a/api/Factories/Xml/WarFoundryXmlSaver.cs	Sun Aug 23 11:05:37 2009 +0000
     1.2 +++ b/api/Factories/Xml/WarFoundryXmlSaver.cs	Sun Aug 23 11:07:47 2009 +0000
     1.3 @@ -145,7 +145,7 @@
     1.4  		private XmlElement CreateEquipmentElement(UnitEquipmentItem item, Unit unit, XmlDocument doc)
     1.5  		{
     1.6  			XmlElement equipmentItemElem = doc.CreateElement("equipItem");
     1.7 -			equipmentItemElem.SetAttribute("id", item.EquipmentItemID);
     1.8 +			equipmentItemElem.SetAttribute("id", item.ID);
     1.9  			equipmentItemElem.SetAttribute("amount", unit.GetEquipmentAmount(item).ToString());
    1.10  			equipmentItemElem.SetAttribute("amountType", unit.GetEquipmentAmountIsRatio(item) ? "ratio" : "fixed");
    1.11  			return equipmentItemElem;