Skip to content

Commit

Permalink
- fixed crash on loading linedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jan 9, 2019
1 parent cb4548a commit a173021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p_xlat.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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.