diff --git a/source/core/sectorgeometry.cpp b/source/core/sectorgeometry.cpp index 32ab645b8..38c5c53cf 100644 --- a/source/core/sectorgeometry.cpp +++ b/source/core/sectorgeometry.cpp @@ -305,7 +305,7 @@ void SectorGeometry::ValidateSector(unsigned int secnum, int plane) sec->floorypan_ == compare->floorypan_ && sec->floorz == compare->floorz && wall[sec->wallptr].pos == data[secnum].poscompare && - wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare && + wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare2 && !(sec->dirty & 1) && data[secnum].planes[plane].vertices.Size() ) return; sec->dirty &= ~1; @@ -318,7 +318,8 @@ void SectorGeometry::ValidateSector(unsigned int secnum, int plane) sec->ceilingxpan_ == compare->ceilingxpan_ && sec->ceilingypan_ == compare->ceilingypan_ && sec->ceilingz == compare->ceilingz && - wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare && + wall[sec->wallptr].pos == data[secnum].poscompare && + wall[wall[sec->wallptr].point2].pos == data[secnum].poscompare2 && !(sec->dirty & 2) && data[secnum].planes[plane].vertices.Size()) return; sec->dirty &= ~2;