From 5f44bc4d5fada75fcd6449c5f947fd083f61c0b0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 27 Mar 2017 10:55:51 +0300 Subject: [PATCH] Fixed crash in line portal setup https://mantis.zdoom.org/view.php?id=488 --- src/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);