mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +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)
|
||||
{
|
||||
auto sect = wal->nextSector();
|
||||
auto sectp = wal->nextSector();
|
||||
|
||||
if (mirrorcnt > 63)
|
||||
I_Error("Too many mirrors (64 max.)");
|
||||
if (sect->ceilingpicnum != MIRROR)
|
||||
if (sectp && sectp->ceilingpicnum != MIRROR)
|
||||
{
|
||||
sect->ceilingpicnum = MIRROR;
|
||||
sect->floorpicnum = MIRROR;
|
||||
sectp->ceilingpicnum = MIRROR;
|
||||
sectp->floorpicnum = MIRROR;
|
||||
mirrorwall[mirrorcnt] = wal;
|
||||
mirrorsector[mirrorcnt] = sect;
|
||||
mirrorsector[mirrorcnt] = sectp;
|
||||
mirrorcnt++;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue