From 24e15786a2f8eb8e94bbaff8f9c16960a8ea28b9 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 13 Oct 2025 11:19:05 -0400 Subject: [PATCH] clear thicksides with memset instead of loop --- src/r_segs.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 2a0e27501..e29e8a374 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -2013,8 +2013,7 @@ void R_StoreWallRange(INT32 start, INT32 stop) numbackffloors = 0; - for (i = 0; i < MAXFFLOORS; i++) - ds_p->thicksides[i] = NULL; + memset(ds_p->thicksides, 0, MAXFFLOORS * sizeof(*ds_p->thicksides)); if (numffloors) {