remove unnecessary condition on use_offensive()

`otmp` here is always non-null, otherwise it leads segv at earlier code.
This commit is contained in:
SHIRAKATA Kentaro
2022-06-20 21:48:03 +09:00
committed by PatR
parent 5120764560
commit 5f6535728d

View File

@@ -1673,7 +1673,7 @@ use_offensive(struct monst *mtmp)
/* offensive potions are not drunk, they're thrown */
if (otmp->oclass != POTION_CLASS && (i = precheck(mtmp, otmp)) != 0)
return i;
oseen = otmp && canseemon(mtmp);
oseen = canseemon(mtmp);
switch (gm.m.has_offense) {
case MUSE_WAN_DEATH: