fixes #9256 (error with deactivating bots and dropping ammo)