mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-17 10:21:11 +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
|
bool World::isUnderwater(const MWWorld::CellStore* cell, const osg::Vec3f &pos) const
|
||||||
{
|
{
|
||||||
|
if (!cell)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!(cell->getCell()->hasWater())) {
|
if (!(cell->getCell()->hasWater())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user