forked from teamnwah/openmw-tes3coop
Fix a crash in the World::isUnderwater() if the cell is empty
This commit is contained in:
parent
9b04a7c1e6
commit
7d703a13a3
1 changed files with 3 additions and 0 deletions
|
@ -2123,6 +2123,9 @@ namespace MWWorld
|
|||
|
||||
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
|
||||
{
|
||||
if (!cell)
|
||||
return false;
|
||||
|
||||
if (!(cell->getCell()->hasWater())) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue