- fixed crash on loading linedefs

This commit is contained in:
alexey.lysiuk 2019-01-09 10:55:12 +02:00
parent cb4548a160
commit a173021c75

View file

@ -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);
}