mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Fix a crash in the World::isUnderwater() if the cell is empty
This commit is contained in:
parent
9b04a7c1e6
commit
7d703a13a3
@ -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…
x
Reference in New Issue
Block a user