diff api/Objects/Unit.cs @ 206:0ca96143aa03

Re #211: Swapping from percentage to numeric selection doesn't remove old selection * Use Unit's "RemoveEquipmentItem" method instead of just removing from the equipment list and not the slot list
author IBBoard <dev@ibboard.co.uk>
date Mon, 09 Nov 2009 12:20:34 +0000
parents c0edb72a10ba
children e8e9026dd4ea
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Sun Nov 08 20:48:22 2009 +0000
+++ b/api/Objects/Unit.cs	Mon Nov 09 12:20:34 2009 +0000
@@ -340,7 +340,7 @@
 					}
 					else
 					{
-						equipment.Remove(equip);
+						RemoveEquipmentItem(equip);
 						AddEquipmentAmount(equip, amount);
 					}
 	
@@ -401,7 +401,7 @@
 					}
 					else
 					{
-						equipment.Remove(equip);
+						RemoveEquipmentItem(equip);
 						AddEquipmentRatio(equip, ratio);
 					}