inventory system Bug for when I click the item in my inventory it doesn't get brought up anymore after clicking it

Hello, I really need some help with a bug that’s in my inventory system, usually when I have the item in my inventory I can click on it and bring it up, but now I can’t do that again here’s the error:

Blueprint Runtime Error: “Attempted to access BP_BasementKey_C_0 via property Item, but BP_BasementKey_C_0 is not valid (pending kill or garbage)”. Node: Open Item from Inventory Graph: EventGraph Function: Execute Ubergraph WB Inventory Slots Blueprint: WB_InventorySlots

1 Like

I assume this is when you try and inspect the basement key? :smiley:

Somehow, you’re destroying it just before you try and look at it.

Yes i tried to inspect it from my inventory, but i dont see how its being destroyed. I only get the error when i click on the open button from my wb_inventorySlot that is connected to a open from inventory custom event, would you like a screenshot of it?

1 Like

You can try.

It probably won’t help, as these inventory things are usually a spaghetti junction :sweat_smile:, but somehow, that seems to be happening.

Do you have ‘destroy component’ in your code anywhere, or destroy actor?

Actually, I was uncertain at first if anyone could help me on this, but I have hope
Yes, I have a destroy component on the bp_inspector base which is the parent of the key



I found out two things, first is that anytime I add the destroy component to one of the children it gives me that error, another thing is that the same component I changed its name a while back but now I’m trying to change it to its previous name its telling me that its already there even though it isn’t so my thought is the reference got messed up, I even tried to fix redirectors but no good any ideas?