1
0
Fork 0
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:
Chris-plus-alphanumericgibberish 2020-09-07 19:19:30 -04:00 committed by GitHub
commit a754654604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;