mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-08-14 00:21:38 +01:00
Merge pull request #1129 from NeroOneTrueKing/patch-zero-rockets-crash
Fix crash from attempting to turn <10 silver bullets into rockets
This commit is contained in:
commit
a754654604
1 changed files with 2 additions and 1 deletions
|
@ -6229,7 +6229,8 @@ doapply()
|
|||
The(aobjnam(otmp, "slip")),
|
||||
(const char *)0);
|
||||
break;
|
||||
case SILVER_BULLET:{
|
||||
case SILVER_BULLET:
|
||||
if(otmp->quan >= 10){
|
||||
struct obj *rocket;
|
||||
rocket = mksobj(ROCKET, FALSE, FALSE);
|
||||
rocket->blessed = otmp->blessed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue