changeset 107:c4ee96a91018

Re #53: Add XML saver * Actually add unit elements, since creating them doesn't add them as well!
author IBBoard <dev@ibboard.co.uk>
date Fri, 21 Aug 2009 19:51:24 +0000
parents 9bf5eff0992a
children 2060f23abee9
files api/Factories/Xml/WarFoundryXmlSaver.cs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/api/Factories/Xml/WarFoundryXmlSaver.cs	Mon Aug 17 19:58:54 2009 +0000
+++ b/api/Factories/Xml/WarFoundryXmlSaver.cs	Fri Aug 21 19:51:24 2009 +0000
@@ -106,6 +106,8 @@
 				{
 					unitElem.SetAttribute("race", unit.Race.ID);
 				}
+				
+				units.AppendChild(unitElem);
 			}
 			
 			return doc.OuterXml;