From fe3a32d69242b00c7aa5c9a33691918e00359bbd Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 6 Dec 2022 11:05:11 +0100 Subject: [PATCH] - SW: fixed camera validation --- source/games/sw/src/jsector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/jsector.cpp b/source/games/sw/src/jsector.cpp index 4c3e94087..49a57cadc 100644 --- a/source/games/sw/src/jsector.cpp +++ b/source/games/sw/src/jsector.cpp @@ -478,7 +478,7 @@ void JS_DrawCameras(PLAYER* pp, const DVector3& campos, double smoothratio) DAngle oscillation_angle = mapangle(oscilation_delta); for (cnt = MAXMIRRORS - 1; cnt >= 0; cnt--) { - if (!mirror[cnt].ismagic) continue; // these are definitely not camera textures. + if (!mirror[cnt].ismagic || mirror[cnt].campic < 0) continue; // these are definitely not camera textures. auto tex = tileGetTexture(mirror[cnt].campic); if (tex && tex->isSeen(true))