Skip to content

Commit

Permalink
Merge branch 'thefutureofcrashesisfoggy' into 'master'
Browse files Browse the repository at this point in the history
Only load FoW if it exists

Closes #8262

See merge request OpenMW/openmw!4485
  • Loading branch information
Capostrophic committed Dec 21, 2024
2 parents 7afbf81 + 73612b0 commit 3e8ea80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwrender/localmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3e8ea80

Please sign in to comment.