mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- SW: Tidy some ‘newsect’ may be used uninitialized
warnings from GCC.
This commit is contained in:
parent
9e51f911ab
commit
3b099e09cd
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ FAFhitscan(int32_t x, int32_t y, int32_t z, sectortype* sect,
|
|||
hit.hitpos.y -= yvect>>9;
|
||||
|
||||
// warp to new x,y,z, sectnum
|
||||
sectortype* newsect;
|
||||
sectortype* newsect = nullptr;
|
||||
if (Warp(&hit.hitpos.x, &hit.hitpos.y, &hit.hitpos.z, &newsect))
|
||||
{
|
||||
// hitscan needs to pass through dest sect
|
||||
|
@ -191,7 +191,7 @@ FAFhitscan(int32_t x, int32_t y, int32_t z, sectortype* sect,
|
|||
if (TEST(hit.hitSector->firstWall()->cstat, CSTAT_WALL_WARP_HITSCAN))
|
||||
{
|
||||
// hit the floor of a sector that is a warping sector
|
||||
sectortype* newsect;
|
||||
sectortype* newsect = nullptr;
|
||||
if (Warp(&hit.hitpos.x, &hit.hitpos.y, &hit.hitpos.z, &newsect))
|
||||
{
|
||||
auto pos = hit.hitpos;
|
||||
|
|
Loading…
Reference in a new issue