diff --git a/src/g_level.h b/src/g_level.h index 6b4d1d8f2..d332a0093 100644 --- a/src/g_level.h +++ b/src/g_level.h @@ -468,7 +468,7 @@ enum void G_ChangeLevel(const char *levelname, int position, int flags, int nextSkill=-1); void G_StartTravel (); -void G_FinishTravel (); +int G_FinishTravel (); void G_DoLoadLevel (int position, bool autosave); diff --git a/src/p_udmf.cpp b/src/p_udmf.cpp index 7952d2a92..3b8c06132 100644 --- a/src/p_udmf.cpp +++ b/src/p_udmf.cpp @@ -2073,6 +2073,7 @@ public: else if (sc.Compare("sector")) { sector_t sec; + memset(&sec, 0, sizeof(sector_t)); ParseSector(&sec, ParsedSectors.Size()); ParsedSectors.Push(sec); }