Inventory - discard items

Hey everyone, I’m currently working on inventory system and everything is working even with this warrning which I get at ‘discard’ part of inventory.

Any solution would be great.

You don’t need “cast to player controller”. Delete it and connect “get player controller” with “set show mouse cursor”
For me it’s working.