Giving new_light_source '(genericptr_t) mtmp' leads to the light source's id.a_monst being set to 'mtmp->nmon' rather than 'mtmp', since that's what is stored in the initial byte of the monst struct. When mtmp->nmon == 0x0 this can cause a segfault in do_light_sources.
183 KiB
183 KiB