From 34bee8116ca4382f1d5923a258d569c25d05885d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 15 Dec 2021 19:06:43 +0100 Subject: [PATCH] - SW: fixed uninitialized variable in FAFhitscan --- source/games/sw/src/rooms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/sw/src/rooms.cpp b/source/games/sw/src/rooms.cpp index 6e25e816c..bdfb683e1 100644 --- a/source/games/sw/src/rooms.cpp +++ b/source/games/sw/src/rooms.cpp @@ -201,7 +201,7 @@ FAFhitscan(int32_t x, int32_t y, int32_t z, sectortype* sect, } else { - sectortype* newsect; + sectortype* newsect = nullptr; if (WarpPlane(&hit.hitpos.x, &hit.hitpos.y, &hit.hitpos.z, &newsect)) { auto pos = hit.hitpos;