diff --git a/apps/openmw/mwscript/transformationextensions.cpp b/apps/openmw/mwscript/transformationextensions.cpp index 879cf85144..a8d7dc0871 100644 --- a/apps/openmw/mwscript/transformationextensions.cpp +++ b/apps/openmw/mwscript/transformationextensions.cpp @@ -417,9 +417,8 @@ namespace MWScript Log(Debug::Warning) << error; if (!isPlayer) return; - const ESM::ExteriorCellLocation cellIndex - = ESM::positionToExteriorCellLocation(x, y, store->getCell()->getWorldSpace()); - store = &worldModel->getExterior(cellIndex); + store = &worldModel->getExterior( + ESM::positionToExteriorCellLocation(x, y, ESM::Cell::sDefaultWorldspaceId)); } if (store) {