File tree Expand file tree Collapse file tree
Intersect.Client.Core/Interface/Game Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,12 +63,14 @@ protected override void OnContextMenuOpening(ContextMenu contextMenu)
6363 return ;
6464 }
6565
66- if ( SlotIndex >= bagSlots . Length )
66+ var slotIndex = SlotIndex ;
67+
68+ if ( slotIndex >= bagSlots . Length )
6769 {
6870 return ;
6971 }
7072
71- if ( bagSlots [ SlotIndex ] is not { } bagSlot )
73+ if ( bagSlots [ slotIndex ] is not { } bagSlot )
7274 {
7375 return ;
7476 }
Original file line number Diff line number Diff line change @@ -66,12 +66,14 @@ protected override void OnContextMenuOpening(ContextMenu contextMenu)
6666 return ;
6767 }
6868
69- if ( SlotIndex >= bankSlots . Length )
69+ var slotIndex = SlotIndex ;
70+
71+ if ( slotIndex >= bankSlots . Length )
7072 {
7173 return ;
7274 }
7375
74- if ( bankSlots [ SlotIndex ] is not { } bankSlot )
76+ if ( bankSlots [ slotIndex ] is not { } bankSlot )
7577 {
7678 return ;
7779 }
You can’t perform that action at this time.
0 commit comments