- fixed: non-existent partner segs were not properly initialized.

This commit is contained in:
Christoph Oelckers 2017-01-09 20:53:37 +01:00
parent bc492a0b7f
commit cc8c20adf8

View file

@ -930,7 +930,8 @@ void P_LoadGLZSegs (FileReaderBase &data, int type)
{
seg[-1].v2 = seg->v1;
}
seg->PartnerSeg = &segs[partner];
seg->PartnerSeg = partner == 0xffffffffu? nullptr : &segs[partner];
if (line != 0xFFFFFFFF)
{
line_t *ldef;