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;