From 526268a2164223f600a08c661257c06234e2673f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 4 Jan 2019 10:20:18 +0100 Subject: [PATCH] - fixed cherry picked commit based on code that didn't get into the maintenance branch. --- src/compatibility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compatibility.cpp b/src/compatibility.cpp index d66438f037..36ca0ff3bb 100644 --- a/src/compatibility.cpp +++ b/src/compatibility.cpp @@ -333,9 +333,9 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, OffsetSectorPlane) PARAM_INT(planeval); PARAM_FLOAT(delta); - if ((unsigned)sector < self->Level->sectors.Size()) + if ((unsigned)sector < level.sectors.Size()) { - sector_t *sec = &self->Level->sectors[sector]; + sector_t *sec = &level.sectors[sector]; secplane_t& plane = sector_t::floor == planeval? sec->floorplane : sec->ceilingplane; plane.ChangeHeight(delta); sec->ChangePlaneTexZ(planeval, delta); @@ -357,7 +357,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, AddSectorTag) PARAM_INT(sector); PARAM_INT(tag); - if ((unsigned)sector < self->Level->sectors.Size()) + if ((unsigned)sector < level.sectors.Size()) { tagManager.AddSectorTag(sector, tag); }