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:
parent
3041d10d69
commit
51d806057d
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue