Permalink
Browse files

- fixed crash on loading linedefs

  • Loading branch information...
alexey-lysiuk committed Jan 9, 2019
1 parent cb4548a commit a173021c75cf9753f617f8ff64a7545f9d6ecf51
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/p_xlat.cpp
@@ -62,7 +62,6 @@ void P_TranslateLineDef (line_t *ld, maplinedef_t *mld, int lineindexforid)
short tag = mld->tag;
uint32_t flags =mld->flags;
INTBOOL passthrough = 0;
auto Level = ld->GetLevel();

uint32_t flags1 = flags;
uint32_t newflags = 0;
@@ -103,6 +102,7 @@ void P_TranslateLineDef (line_t *ld, maplinedef_t *mld, int lineindexforid)
// line also needs to have its ID set to the same as its tag.
// An external conversion program would need to do this more
// intelligently.
auto Level = ld->GetLevel();
Level->tagManager.AddLineID(lineindexforid, tag);
}

@@ -499,4 +499,4 @@ const int* (*XlatExprEval[XEXP_COUNT])(int *dest, const int *xnode, FXlatExprSta
Expr_Or,
Expr_Xor,
Expr_Neg
};
};

0 comments on commit a173021

Please sign in to comment.