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

Fix crash when throwing ball inside engulfer

This commit is contained in:
NeroOneTrueKing 2021-08-26 19:46:44 -05:00
parent 3041d10d69
commit 51d806057d

View file

@ -815,7 +815,13 @@ boolean forcedestroy; /* If TRUE, make sure the projectile is destroyed */
return;
}
else {
mpickobj(u.ustuck, thrownobj);
if (thrownobj != uball)
mpickobj(u.ustuck, thrownobj);
else {
/* ball-related stuff */
thrownobj->owornmask |= (old_wep_mask&(W_CHAIN|W_BALL));
drop_ball(u.ux, u.uy);
}
*thrownobj_p = NULL;
return;
}