- Joined
- Aug 3, 2008
- Messages
- 2,345
Ok, so I'm creating a system which causes items to stack in a unit's inventory using hash tables (hash tables aren't important in this thread). Everything works fine, blablabla. But I want to make it so if the unit is issued an order to pick up an item, and his inventory is full, but he can still stack the item in his inventory, he will move towards the item and "pick it up", adding it to a stack of the items in his inventory. Everything works fine, except that it shows the error message: "Inventory is full". How to prevent this?