Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
changeset 91:e1e3957db129 WarFoundry_v0.1beta5_Winforms WarFoundry_v0.1beta5a_Winforms
Fixes #206:
* Move call to SetUnitEquipmentItemAmount() helper function to make sure equip isn't null and to be in a more sensible place
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 02 Nov 2009 20:41:53 +0000 |
parents | 63ca28bd8ada |
children | 04ca17389f13 |
files | UI/EquipmentAmountControl.cs |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 {