Fix bug with cheats.

I knew alot less when I originally wrote this.
Bug to do with dropping items and crashing.