- SW: fixed uninitialized variable in FAFhitscan

This commit is contained in:
Christoph Oelckers 2021-12-15 19:06:43 +01:00
parent 4700299fc6
commit 34bee8116c

View file

@ -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;