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:
parent
9cebe78a51
commit
b67ecb4e4f
1 changed files with 18 additions and 20 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue