- Fix GCC warning warning: ‘vec.TVector2<double>::X’ may be used uninitialized [-Wmaybe-uninitialized].

This commit is contained in:
Mitchell Richters 2022-01-01 20:50:58 +11:00
parent 45057ff8a0
commit 733b6a7367

View file

@ -1095,7 +1095,7 @@ void HWWall::ProcessWallSprite(HWDrawInfo* di, tspritetype* spr, sectortype* sec
topofs = ((int)tex->GetDisplayTopOffset() + spr->yoffset);
}
DVector2 vec;
DVector2 vec{};
walldist = IsOnWall(spr, height, vec);
wallpoint = { float(vec.X * (1 / 16.f)), float(vec.Y * (-1 / 16.f)) };
if (walldist)