Mercurial > repos > IBBoard.WarFoundry.API
changeset 205:c0edb72a10ba
Fixes #210: Editing equipment in slot loses amount
* Create a new list containing all of the items in the old list so that we don't modify the original!
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 08 Nov 2009 20:48:22 +0000 |
parents | 3ef067225dc3 |
children | 0ca96143aa03 |
files | api/Objects/Unit.cs |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Objects/Unit.cs Sun Nov 08 20:45:45 2009 +0000 +++ b/api/Objects/Unit.cs Sun Nov 08 20:48:22 2009 +0000 @@ -533,6 +533,7 @@ if (selections != null) { + selections = new List<AbstractUnitEquipmentItemSelection>(selections); RemoveSelectionFromList(item, selections); amount = GetSelectionTotal(selections); }