Only load FoW if it exists

master
Evil Eye 1 week ago
parent 356c530d8c
commit 73612b0e9c

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

Loading…
Cancel
Save