Fix a crash in the World::isUnderwater() if the cell is empty

experimental
Andrei Kortunov 7 years ago
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…
Cancel
Save