1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-07 00:11:36 +00:00

Remove redundant else

This commit is contained in:
elsid 2023-08-18 19:06:08 +02:00
parent 9cebe78a51
commit b67ecb4e4f
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -22,8 +22,7 @@ namespace MWRender
const osg::ref_ptr<osg::Object> obj = mCache->getRefFromObjectCache(cellIndex);
if (obj != nullptr)
return static_cast<ESMTerrain::LandObject*>(obj.get());
else
{
const MWBase::World& world = *MWBase::Environment::get().getWorld();
if (ESM::isEsm4Ext(cellIndex.mWorldspace))
@ -45,7 +44,6 @@ namespace MWRender
return landObj;
}
}
}
void LandManager::reportStats(unsigned int frameNumber, osg::Stats* stats) const
{