Correct a potential memory leak

Thanks to Ratany for drawing my attention to it.
Fix a conflict with the inventory offer button enum and the profile button's index