Hey there evryone.
Im having a little problem with my code here.
This is what i have:
I have a simple 6 slot inventory system going on. This piece of code checks if the inventory is not full (has at least 1 slot free) Basically if any value in X is 0, it means that slot is empty. The thing is, that it works in a weird way.
I add items to the inventory until all 6 slots are used. The code runs and sets "inv_full" to true. Everything great over there. The problem is that if I delete any slot, other than the last one, It doesnt set the "inv_full" back to false. As soon as I delete the last slot (last X value in the array) than it sets "inv_full" to false.