diff api/Factories/Xml/WarFoundryXmlSaver.cs @ 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 d0c60b3204c1
children c60fd5664698
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;