From 50d2145ba041c55d4f81e1b3b72545948db5be83 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 8 Mar 2016 09:41:54 +0100 Subject: [PATCH] - fixed typo in portal init code. --- src/portal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/portal.cpp b/src/portal.cpp index d615da3c9..6ec1c6c1d 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -1081,7 +1081,7 @@ void P_CreateLinkedPortals() // set a flag on each line connecting to a plane portal sector. This is used to reduce the amount of checks in P_CheckSight. if (sectors[i].PortalIsLinked(sector_t::floor) || sectors[i].PortalIsLinked(sector_t::ceiling)) { - for (int j = 0; j < sectors[j].linecount; j++) + for (int j = 0; j < sectors[i].linecount; j++) { sectors[i].lines[j]->flags |= ML_PORTALCONNECT; }