diff --git a/src/portal.cpp b/src/portal.cpp index 1ec92799f4..acf6e022de 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -167,7 +167,7 @@ static void BuildBlockmap() void FLinePortalTraverse::AddLineIntercepts(int bx, int by) { - if (by < 0 || by >= PortalBlockmap.dx || bx < 0 || bx >= PortalBlockmap.dy) return; + if (by < 0 || by >= PortalBlockmap.dy || bx < 0 || bx >= PortalBlockmap.dx) return; FPortalBlock &block = PortalBlockmap(bx, by);