# HG changeset patch # User IBBoard # Date 1257194513 0 # Node ID e1e3957db12981f40df3b829191e99eb1763a5ca # Parent 63ca28bd8adae604eb64cee678bbae75ccd790d7 Fixes #206: * Move call to SetUnitEquipmentItemAmount() helper function to make sure equip isn't null and to be in a more sensible place diff -r 63ca28bd8ada -r e1e3957db129 UI/EquipmentAmountControl.cs --- a/UI/EquipmentAmountControl.cs Mon Nov 02 20:26:37 2009 +0000 +++ b/UI/EquipmentAmountControl.cs Mon Nov 02 20:41:53 2009 +0000 @@ -35,7 +35,6 @@ { equip = unitEquipment; SetWidgetValues(); - SetUnitEquipmentItemAmount(); } private void OnValueChanged() @@ -75,6 +74,8 @@ numeric.Enabled = !equipIsRatioLimit || minPercent != 100; rbNumeric.Enabled = numeric.Enabled; rbNumeric.Checked = !equipIsRatioLimit; + + SetUnitEquipmentItemAmount(); } else {