Mercurial > repos > snowblizz-super-API-ideas
changeset 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 | 897c53d5a8aa |
files | api/Objects/Unit.cs |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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); }