# HG changeset patch # User IBBoard # Date 1257713302 0 # Node ID c0edb72a10baeaa111ca90ca018710d3524720c5 # Parent 3ef067225dc3491833690a76e1011f43e0aa4275 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! diff -r 3ef067225dc3 -r c0edb72a10ba api/Objects/Unit.cs --- 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(selections); RemoveSelectionFromList(item, selections); amount = GetSelectionTotal(selections); }