Been doing some digging.
Should monster_learn_resists or update_smart_learn abort where
gf_ptr->resist
gf_ptr->immunity
or
gf_ptr->vuln
is null?
Because as near as I can tell, when that null goes into FLAG_OFFSET(flag) we get a negative-wraparound on the unsigned flag_offset which is what causes the crash.
Should monster_learn_resists or update_smart_learn abort where
gf_ptr->resist
gf_ptr->immunity
or
gf_ptr->vuln
is null?
Because as near as I can tell, when that null goes into FLAG_OFFSET(flag) we get a negative-wraparound on the unsigned flag_offset which is what causes the crash.
Comment