From 594eead50d9dd38e04741832314f547d0e353689 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 29 Jan 2024 12:09:14 -0500 Subject: [PATCH] pick_familiar_pm follow-up --- src/dog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dog.c b/src/dog.c index 970a04ce0..2238096a9 100644 --- a/src/dog.c +++ b/src/dog.c @@ -84,6 +84,7 @@ pick_familiar_pm(struct obj *otmp, boolean quietly) if (otmp) { /* figurine; otherwise spell */ int mndx = otmp->corpsenm; + assert(ismnum(mndx)); pm = &mons[mndx]; /* activating a figurine provides one way to exceed the maximum number of the target critter created--unless