Fixed a crash when resisting magic without a helmet.

The odds adjustment in magic_resisted_effect didn't check uarmh != 0
before dereferencing. I'm a bit embarrassed about this.