mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 16:36:33 -04:00
0 to nullptr
This commit is contained in:
parent
a13edbdb42
commit
fdcc7fa1d7
@ -57,7 +57,7 @@ namespace CSVRender
|
|||||||
osg::ref_ptr<const ESMTerrain::LandObject> land = getLand (cellX, cellY);
|
osg::ref_ptr<const ESMTerrain::LandObject> land = getLand (cellX, cellY);
|
||||||
if (land)
|
if (land)
|
||||||
{
|
{
|
||||||
const ESM::Land::LandData* data = land ? land->getData(ESM::Land::DATA_VHGT) : 0;
|
const ESM::Land::LandData* data = land ? land->getData(ESM::Land::DATA_VHGT) : nullptr;
|
||||||
if (data) height = getVertexHeight(data, inCellX, inCellY);
|
if (data) height = getVertexHeight(data, inCellX, inCellY);
|
||||||
}
|
}
|
||||||
else return height;
|
else return height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user