- fixed: The check for one-way portals in the renderer was incomplete.

This commit is contained in:
Christoph Oelckers 2016-05-02 19:47:27 +02:00
parent f9022f3054
commit ec037bfd1a

View file

@ -217,7 +217,7 @@ void GLWall::PutPortal(int ptype)
if (!portal) if (!portal)
{ {
line_t *otherside = lineportal->lines[0]->mDestination; line_t *otherside = lineportal->lines[0]->mDestination;
if (otherside != NULL) if (otherside != NULL && otherside->portalindex < linePortals.Size())
{ {
gl_RenderActorsInPortal(linePortalToGL[otherside->portalindex]); gl_RenderActorsInPortal(linePortalToGL[otherside->portalindex]);
} }