mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 18:06:41 +00:00
Only load FoW if it exists
This commit is contained in:
parent
356c530d8c
commit
73612b0e9c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue