1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-31 09:52:25 +01:00

Fix crash from dnh bug in msummon code.

This commit is contained in:
demogorgon22 2022-11-20 11:23:29 -05:00
parent 56b425fc9d
commit 25b6707cd8

View file

@ -141,7 +141,7 @@ struct permonst * ptr; /* summon as though you were <X> */
if (mon && mon->mfaction){
set_faction(mtmp, mon->mfaction);
}
if(!is_lord(mtmp->data) && !is_prince(mtmp->data)){
if(mon && !is_lord(mtmp->data) && !is_prince(mtmp->data)){
mtmp->mpeaceful = mon->mpeaceful;
set_malign(mtmp);
}