remove unnecessary condition on use_offensive()
`otmp` here is always non-null, otherwise it leads segv at earlier code.
This commit is contained in:
@@ -1673,7 +1673,7 @@ use_offensive(struct monst *mtmp)
|
|||||||
/* offensive potions are not drunk, they're thrown */
|
/* offensive potions are not drunk, they're thrown */
|
||||||
if (otmp->oclass != POTION_CLASS && (i = precheck(mtmp, otmp)) != 0)
|
if (otmp->oclass != POTION_CLASS && (i = precheck(mtmp, otmp)) != 0)
|
||||||
return i;
|
return i;
|
||||||
oseen = otmp && canseemon(mtmp);
|
oseen = canseemon(mtmp);
|
||||||
|
|
||||||
switch (gm.m.has_offense) {
|
switch (gm.m.has_offense) {
|
||||||
case MUSE_WAN_DEATH:
|
case MUSE_WAN_DEATH:
|
||||||
|
|||||||
Reference in New Issue
Block a user