1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 18:39:39 +00:00

0 to nullptr

This commit is contained in:
Nelsson Huotari 2019-10-22 20:58:34 +03:00
parent a13edbdb42
commit fdcc7fa1d7

View file

@ -57,7 +57,7 @@ namespace CSVRender
osg::ref_ptr<const ESMTerrain::LandObject> land = getLand (cellX, cellY);
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);
}
else return height;