mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 23:51:01 +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)
|
||||
{
|
||||
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();
|
||||
if (walbitmap.Check(wall.IndexOf(wal))) break;
|
||||
|
|
Loading…
Reference in a new issue