diff --git a/src/r_data/portalgroups.cpp b/src/r_data/portalgroups.cpp index f1baac476c..a22ca157ce 100644 --- a/src/r_data/portalgroups.cpp +++ b/src/r_data/portalgroups.cpp @@ -461,9 +461,8 @@ static void GroupLinePortals() void InitPortalGroups() { - if (level.nodes.Size() == 0) return; - - GroupSectorPortals(); + if (level.nodes.Size() > 0) + GroupSectorPortals(); GroupLinePortals(); }