mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- Duke: Apply same nullptr fix in 2e7496888a
to prelevel_r()
, and rename sect
to sectp
for 1:1 match between _d.cpp and _r.cpp files.
This commit is contained in:
parent
2e7496888a
commit
96867e15d5
1 changed files with 5 additions and 5 deletions
|
@ -722,16 +722,16 @@ void prelevel_r(int g)
|
||||||
|
|
||||||
if (wal->overpicnum == MIRROR && (wal->cstat & 32) != 0)
|
if (wal->overpicnum == MIRROR && (wal->cstat & 32) != 0)
|
||||||
{
|
{
|
||||||
auto sect = wal->nextSector();
|
auto sectp = wal->nextSector();
|
||||||
|
|
||||||
if (mirrorcnt > 63)
|
if (mirrorcnt > 63)
|
||||||
I_Error("Too many mirrors (64 max.)");
|
I_Error("Too many mirrors (64 max.)");
|
||||||
if (sect->ceilingpicnum != MIRROR)
|
if (sectp && sectp->ceilingpicnum != MIRROR)
|
||||||
{
|
{
|
||||||
sect->ceilingpicnum = MIRROR;
|
sectp->ceilingpicnum = MIRROR;
|
||||||
sect->floorpicnum = MIRROR;
|
sectp->floorpicnum = MIRROR;
|
||||||
mirrorwall[mirrorcnt] = wal;
|
mirrorwall[mirrorcnt] = wal;
|
||||||
mirrorsector[mirrorcnt] = sect;
|
mirrorsector[mirrorcnt] = sectp;
|
||||||
mirrorcnt++;
|
mirrorcnt++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue