mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 00:43:05 +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
1 changed files with 2 additions and 3 deletions
|
|
@ -417,9 +417,8 @@ namespace MWScript
|
||||||
Log(Debug::Warning) << error;
|
Log(Debug::Warning) << error;
|
||||||
if (!isPlayer)
|
if (!isPlayer)
|
||||||
return;
|
return;
|
||||||
const ESM::ExteriorCellLocation cellIndex
|
store = &worldModel->getExterior(
|
||||||
= ESM::positionToExteriorCellLocation(x, y, store->getCell()->getWorldSpace());
|
ESM::positionToExteriorCellLocation(x, y, ESM::Cell::sDefaultWorldspaceId));
|
||||||
store = &worldModel->getExterior(cellIndex);
|
|
||||||
}
|
}
|
||||||
if (store)
|
if (store)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue