remove unnecessary null-check on bhitm()

`otmp` here is always non-null, otherwise it leads segv at earlier code.
This commit is contained in:
SHIRAKATA Kentaro
2022-08-21 21:22:43 +09:00
parent 6e785f4d8c
commit b36d792334

View File

@@ -163,7 +163,7 @@ bhitm(struct monst *mtmp, struct obj *otmp)
reveal_invis = FALSE;
gn.notonhead = (mtmp->mx != gb.bhitpos.x || mtmp->my != gb.bhitpos.y);
skilled_spell = (otmp && otmp->oclass == SPBOOK_CLASS && otmp->blessed);
skilled_spell = (otmp->oclass == SPBOOK_CLASS && otmp->blessed);
switch (otyp) {
case WAN_STRIKING: