1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-31 01:20:23 +00:00

Merge branch 'thefutureofcrashesisfoggy' into 'master'

Only load FoW if it exists

Closes 

See merge request 
This commit is contained in:
Alexei Kotov 2024-12-21 11:17:44 +00:00
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();