diff API/Objects/Unit.cs @ 431:c8002429ab45

Re #366: Rewrite equipment handling and limits * Remove code added for #356 and work without limiting * Move "Calculate number taken" method to util class
author IBBoard <dev@ibboard.co.uk>
date Sat, 12 Nov 2011 20:35:15 +0000
parents 7179c585d31d
children e6c93ceba119
line wrap: on
line diff
--- a/API/Objects/Unit.cs	Sun Nov 06 20:44:53 2011 +0000
+++ b/API/Objects/Unit.cs	Sat Nov 12 20:35:15 2011 +0000
@@ -511,7 +511,7 @@
 			
 			foreach (AbstractUnitEquipmentItemSelection selection in selections)
 			{
-				amount += selection.RawNumberTaken;
+				amount += selection.NumberTaken;
 			}
 			
 			return amount;