mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 18:21:13 +00:00
- fixed crash on loading linedefs
This commit is contained in:
parent
cb4548a160
commit
a173021c75
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue