diff api/Objects/Unit.cs @ 214:1b718b67f7f6

Re #179: Make sure that translations are used throughout UI * Fix locations in the API that are used in the front-end
author IBBoard <dev@ibboard.co.uk>
date Sat, 21 Nov 2009 21:27:07 +0000
parents c6713a1b4c0d
children 65553d2c8612
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Sat Nov 21 20:06:36 2009 +0000
+++ b/api/Objects/Unit.cs	Sat Nov 21 21:27:07 2009 +0000
@@ -407,8 +407,8 @@
 		}
 		
 		private void RemoveEquipmentItem(UnitEquipmentItem equip)
-		{
-			double oldAmount = GetEquipmentAmount(equip);
+		{
+			double oldAmount = UnitEquipmentUtil.GetEquipmentAmount(this, equip);
 		
 			if (oldAmount != 0)
 			{