diff FrmReplaceUnitEquipment.cs @ 101:3e78af88ceb3

Re #179: Make sure that translations are used throughout UI * Intermediary fix for locations in the UI for amount translations
author IBBoard <dev@ibboard.co.uk>
date Sat, 21 Nov 2009 21:27:39 +0000
parents 74d3efaac800
children b7899d084a14
line wrap: on
line diff
--- a/FrmReplaceUnitEquipment.cs	Sat Nov 21 20:17:10 2009 +0000
+++ b/FrmReplaceUnitEquipment.cs	Sat Nov 21 21:27:39 2009 +0000
@@ -11,6 +11,7 @@
 using IBBoard.WarFoundry.API;
 using IBBoard.WarFoundry.API.Commands;
 using IBBoard.WarFoundry.API.Objects;
+using IBBoard.WarFoundry.API.Util;
 
 namespace IBBoard.WarFoundry
 {
@@ -181,7 +182,7 @@
 				}
 			}
 
-			double oldAmount = unit.GetEquipmentAmount(equipItem);
+			double oldAmount = UnitEquipmentUtil.GetEquipmentAmount(unit, equipItem);
 
 			if (setValue && oldAmount != amount)
 			{