When eating last portion of food from container, if player tries to eat from another food source while eating is already in progress the empty container is not deleted from inventory. It shows as having 0% food left and you can drop it on the ground, i.e. it is not deleted from the game array and stays an object.
Description
Description
Details
Details
- Legacy ID
- 268460123
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Inventory
Steps To Reproduce
- Get a food source to be really low. 25% or less.
- Select "eat" action from inventory.
- While eating animation is playing select "eat" action from a different source.
Result: you will get message that player is already using something however when eating animation stops the container from 1. will stay in inventory with 0% food available.
Additional Information
The problem could come from the error handler that processes the attempt to do additional action while an action is performed. The code probably does not return to execution of original action after error handler popping up message "you are currently using something else (or somesuch)" resulting in delete object action not being performed (i imagine it is in the end of eat function)
Note: I have not seen a single line of the code so speaking purely from general programming experience.