mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 12:15:36 +00:00
Merge branch 'fix_crash' into 'master'
Fix removing heightfield from navigator (#6181) Closes #6181 See merge request OpenMW/openmw!1062
This commit is contained in:
commit
b1a3fc9399
1 changed files with 2 additions and 2 deletions
|
@ -397,8 +397,8 @@ namespace MWWorld
|
|||
|
||||
if (cell->getCell()->isExterior())
|
||||
{
|
||||
if (const auto heightField = mPhysics->getHeightField(cellX, cellY))
|
||||
mNavigator.removeObject(DetourNavigator::ObjectId(heightField));
|
||||
if (mPhysics->getHeightField(cellX, cellY) != nullptr)
|
||||
mNavigator.removeHeightfield(osg::Vec2i(cellX, cellY));
|
||||
}
|
||||
|
||||
if (cell->getCell()->hasWater())
|
||||
|
|
Loading…
Reference in a new issue