1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-16 01:21:37 +01:00

Launcher not garanteed to exist

This commit is contained in:
Chris-plus-alphanumericgibberish 2016-03-13 19:33:09 -04:00
parent e8eb5b9812
commit 8cce0d026d
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ int thrown;
case P_EXPERT: multishot += 2; break;
}
/*Increase skill related rof for heavy machine gun*/
if(launcher->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
if(launcher && launcher->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
/* ...or is using the legendary Longbow... */
if(ammo_and_launcher(obj, launcher)

View file

@ -1005,7 +1005,7 @@ struct monst *mtmp;
else if (is_lord(mtmp->data)) multishot++;
/*Increase skill related rof for heavy machine gun*/
if(mwep->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
if(mwep && mwep->otyp == HEAVY_MACHINE_GUN) multishot *= 2;
switch (monsndx(mtmp->data)) {
case PM_RANGER: