Skip to content

Commit

Permalink
- moved the 'no player start' check to the end of G_DoLoadLevel becau…
Browse files Browse the repository at this point in the history
…se inside G_FinishTravel it would leave some data in undefined places that later can cause a crash.
  • Loading branch information
coelckers committed Apr 25, 2017
1 parent 9375edd commit 090502b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_level.h
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions src/p_udmf.cpp
Expand Up @@ -2073,6 +2073,7 @@ class UDMFParser : public UDMFParserBase
else if (sc.Compare("sector"))
{
sector_t sec;
memset(&sec, 0, sizeof(sector_t));
ParseSector(&sec, ParsedSectors.Size());
ParsedSectors.Push(sec);
}
Expand Down

0 comments on commit 090502b

Please sign in to comment.