Fixes vending machine related crash

Fixes crash that occurs after equipping an item bought from a vending
machine
Merge branch 'master' of https://github.com/AstroTeam/Game