From 4d45117ca523a9801053ce0e0c0f807efad58970 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 12 Feb 2020 00:42:34 +0100 Subject: [PATCH] - removed pointless and non-functional null check clipmapinfo is a static global variable, its address is never null. --- source/build/src/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index d7831cbb1..476681286 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -2485,7 +2485,7 @@ restart_grand: // try and see whether this sprite's picnum has sector-like clipping data i = pictoidx[spr->picnum]; // handle sector-like floor sprites separately - while ((&clipmapinfo != nullptr) && i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32)) + while (i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32)) i = clipinfo[i].next; if (i>=0 && clipspritenum