diff --git a/src/game/prop.c b/src/game/prop.c index 988828c7c..1f9911ff3 100644 --- a/src/game/prop.c +++ b/src/game/prop.c @@ -1065,7 +1065,7 @@ bool shotTestLos(struct coord *gunpos2d, struct coord *gundir2d, struct coord *g if (prop) { if (prop->type == PROPTYPE_CHR || (prop->type == PROPTYPE_PLAYER && prop->chr && (g_Vars.in_cutscene || playermgrGetPlayerNumByProp(prop) != g_Vars.currentplayernum - || g_Vars.currentplayer->eyespy->mode == EYESPYMODE_CAMSPY))) { + || g_Vars.currentplayer->eyespy && g_Vars.currentplayer->eyespy->mode == EYESPYMODE_CAMSPY))) { chrTestHit(prop, &shotdata, false, true); } else if (prop->type == PROPTYPE_WEAPON || (prop->type == PROPTYPE_DOOR && ((struct doorobj *)prop->obj)->doortype != DOORTYPE_LASER) || (prop->type == PROPTYPE_OBJ && prop->obj->type != OBJTYPE_GLASS && prop->obj->type != OBJTYPE_TINTEDGLASS)) {