mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Fix GCC warning warning: ‘vec.TVector2<double>::X’ may be used uninitialized [-Wmaybe-uninitialized]
.
This commit is contained in:
parent
45057ff8a0
commit
733b6a7367
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue