diff --git a/Source/monster.cpp b/Source/monster.cpp index 733b5caae..bf5fa837b 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1925,9 +1925,17 @@ int M_DoStand(int i) MonsterStruct *Monst; if ((DWORD)i >= MAXMONSTERS) +#ifdef HELLFIRE + return 0; +#else app_fatal("M_DoStand: Invalid monster %d", i); +#endif if (monster[i].MType == NULL) +#ifdef HELLFIRE + return 0; +#else app_fatal("M_DoStand: Monster %d \"%s\" MType NULL", i, monster[i].mName); +#endif Monst = &monster[i]; if (Monst->MType->mtype == MT_GOLEM)