1
0
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:
Andrei Kortunov 2017-09-24 16:28:05 +04:00
parent 9b04a7c1e6
commit 7d703a13a3

View File

@ -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;
}