diff api/Objects/Unit.cs @ 151:1d13820b3d96

Fixes #176: Bug when saving recently edited army * Add loaded file cleanup to AbstractWarFoundryFactory * Add override of method with Zip reference closing to WarFoundryXmlFactory WarFoundry now no longer ends up with trailing handles to files, although why they only caused problems in some situations is unknown Also: * Some line ending fixes (curse cross-platform development and different line terminators!)
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Sep 2009 18:48:36 +0000
parents c01366bd1627
children 0c0e14f03785
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Sat Sep 26 10:43:28 2009 +0000
+++ b/api/Objects/Unit.cs	Sat Sep 26 18:48:36 2009 +0000
@@ -86,11 +86,11 @@
 					if (CanEquipWithItem(unitEquip))
 					{
 						if (unitEquip.IsRatioLimit)
-						{
+						{
 							SetEquipmentRatio(unitEquip, unitEquip.MinPercentage);
 						}
 						else
-						{
+						{
 							SetEquipmentAmount(unitEquip, unitEquip.MinNumber);
 						}
 					}