1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00

Only load FoW if it exists

This commit is contained in:
Evil Eye 2024-12-20 00:39:41 +01:00
parent 356c530d8c
commit 73612b0e9c

View File

@ -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();