We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085b432 commit 954a496Copy full SHA for 954a496
Intersect.Editor/Forms/Editors/frmItem.cs
@@ -344,7 +344,14 @@ private void UpdateEditor()
344
nudRgbaA.Value = mEditorItem.Color.A;
345
cmbEquipmentAnimation.SelectedIndex = AnimationBase.ListIndex(mEditorItem.EquipmentAnimationId) + 1;
346
nudPrice.Value = mEditorItem.Price;
347
- cmbRarity.Select(mEditorItem.Rarity, 1);
+ if (mEditorItem.Rarity < cmbRarity.Items.Count)
348
+ {
349
+ cmbRarity.SelectedIndex = mEditorItem.Rarity;
350
+ }
351
+ else if (cmbRarity.Items.Count > 0)
352
353
+ cmbRarity.SelectedIndex = 0;
354
355
356
nudStr.Value = mEditorItem.StatsGiven[0];
357
nudMag.Value = mEditorItem.StatsGiven[1];
0 commit comments