qbsp: MakeNodePortal: don't crash if w is empty

for consistency with qbsp3
This commit is contained in:
Eric Wasylishen 2022-08-07 01:42:09 -06:00
parent 4ec30e02a2
commit cf653b5b56
1 changed files with 3 additions and 0 deletions

View File

@ -227,6 +227,9 @@ std::unique_ptr<buildportal_t> MakeNodePortal(node_t *node, const std::list<std:
// clip the portal by all the other portals in the node
for (auto &p : boundary_portals) {
if (!w) {
break;
}
qplane3d plane;
if (p->nodes[0] == node) {