From b926cf35d5d3c3b642771e2ab8c15ca764b2f46f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 May 2016 09:45:17 +0200 Subject: [PATCH] - fixed: The portal init code should only delete REJECT if there's actually some portals to consider. --- src/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal.cpp b/src/portal.cpp index 74d97b6e7..41f2e755e 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -1111,7 +1111,7 @@ void P_CreateLinkedPortals() } // reject would just get in the way when checking sight through portals. - if (rejectmatrix != NULL) + if (Displacements.size > 1 && rejectmatrix != NULL) { delete[] rejectmatrix; rejectmatrix = NULL;