It's an event that swift values between shortcut bar (array) and an inventory (another array). This events below is picking, on double clicked, the value from inventory slot to shortcut bar. The mechanic is like this: Double Clicked> shows numbers(button) for each shortcut bar's slot> cliking on any of these buttons, the swift happens.
The problem is that it's working, but only after the first time it runs. So the first time I save the value to the shortcut bar but the same doesn't happen to the inventorym which keeps it's original item (only in the first double clicked)
Another problem that I really don't understand is that even the action running, the variable FoundItemTrade keeps -1 and I'm not setting this value again anywhere.