mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- fixed vertexscan crashing on bad walls.
This commit is contained in:
parent
f9cea2b1db
commit
4d8028831b
1 changed files with 2 additions and 1 deletions
|
@ -138,7 +138,8 @@ void vertexscan(walltype* startwall, func mark)
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
auto thelastwall = wal->lastWall();
|
auto thelastwall = wal->lastWall();
|
||||||
if (!thelastwall->twoSided()) break;
|
// thelastwall can be null here if the map is bogus.
|
||||||
|
if (!thelastwall || !thelastwall->twoSided()) break;
|
||||||
|
|
||||||
wal = thelastwall->nextWall();
|
wal = thelastwall->nextWall();
|
||||||
if (walbitmap.Check(wall.IndexOf(wal))) break;
|
if (walbitmap.Check(wall.IndexOf(wal))) break;
|
||||||
|
|
Loading…
Reference in a new issue