qbsp: MakeNodePortal: don't crash if w is empty
for consistency with qbsp3
This commit is contained in:
parent
4ec30e02a2
commit
cf653b5b56
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue