- fixed: The subsector serializing code accessed the subsector array before validating the index.

- added episode names to episode definitions of Doom 1 and Chex Quest.


SVN r2820 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-18 12:37:22 +00:00
commit 051ae3224f
3 changed files with 7 additions and 3 deletions

View file

@ -590,7 +590,7 @@ void P_SerializeSubsectors(FArchive &arc)
by = 0;
for(int j=0;j<8;j++)
{
if ((subsectors[i+j].flags & SSECF_DRAWN) && i+j<numsubsectors)
if (i+j<numsubsectors && (subsectors[i+j].flags & SSECF_DRAWN))
{
by |= (1<<j);
}