mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Merge branch 'fix_position_cell_crash' into 'master'
Use sDefaultWorldspaceId as fallback worldspace for PositionCell command See merge request OpenMW/openmw!3073
This commit is contained in:
commit
c368c188f2
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user