pull request #1136 - remove unnecessary test

Pull request from argrath:  no need to test for Null pointer when it
has already been unconditionally dereferenced.

Closes #1136
This commit is contained in:
PatR
2023-11-29 11:28:55 -08:00

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: