Merge branch 'thefutureofcrashesisfoggy' into 'master'

Only load FoW if it exists

Closes #8262

See merge request OpenMW/openmw!4485
master
Alexei Kotov 7 days ago
commit 3e8ea8086c

@ -266,7 +266,7 @@ namespace MWRender
if (segment.mFogOfWarImage != nullptr)
return;
if (cell->getFog())
if (cell->getFog() && !cell->getFog()->mFogTextures.empty())
segment.loadFogOfWar(cell->getFog()->mFogTextures.back());
else
segment.initFogOfWar();

Loading…
Cancel
Save