- fixed: The stair builder code tried to access a member of a null pointer after finding no more stair sectors.

# Conflicts:
#	src/p_floor.cpp
This commit is contained in:
Christoph Oelckers 2017-01-09 23:23:26 +01:00
parent ea29e45ef5
commit 9eb2730328

View file

@ -663,9 +663,8 @@ bool EV_BuildStairs (int tag, DFloor::EStair type, line_t *line,
sec = tsec;
continue;
}
newsecnum = tsec->Index();
}
newsecnum = (int)(tsec - sectors);
}
else
{