diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index 8e88fc89d9..bbe7153f94 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -792,6 +792,7 @@ public: memset(ld, 0, sizeof(*ld)); ld->alpha = 1.; ld->portalindex = UINT_MAX; + ld->portaltransferred = UINT_MAX; ld->sidedef[0] = ld->sidedef[1] = NULL; if (level.flags2 & LEVEL2_CLIPMIDTEX) ld->flags |= ML_CLIP_MIDTEX; if (level.flags2 & LEVEL2_WRAPMIDTEX) ld->flags |= ML_WRAP_MIDTEX; @@ -1824,9 +1825,6 @@ public: { short tempalpha[2] = { SHRT_MIN, SHRT_MIN }; - lines[line].portalindex = UINT_MAX; - lines[line].portaltransferred = UINT_MAX; - lines[line] = ParsedLines[line]; for(int sd = 0; sd < 2; sd++)