diff --git a/source/exhumed/src/object.cpp b/source/exhumed/src/object.cpp index 24a384539..6583ddd6b 100644 --- a/source/exhumed/src/object.cpp +++ b/source/exhumed/src/object.cpp @@ -857,7 +857,7 @@ void FuncElev(int a, int, int nRun) { // loc_20FC3: int ceilZ = sector[nSector].ceilingz; - sectortype *var_28 = §or[nSector]; + sectortype *cursect = §or[nSector]; int nZOffset = Elevator[nElev].nCurZOffset; int zVal = Elevator[nElev].zOffsets[nZOffset]; @@ -911,7 +911,8 @@ void FuncElev(int a, int, int nRun) } } - var_28->ceilingz = ceilZ; + StartInterpolation(nSector, Interp_Sect_Ceilingz); + cursect->ceilingz = ceilZ; } // maybe this doesn't go here?