From 73612b0e9c09686c8cfa4c5fd9d7cf8b9f16d3cb Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Fri, 20 Dec 2024 00:39:41 +0100 Subject: [PATCH] Only load FoW if it exists --- apps/openmw/mwrender/localmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/localmap.cpp b/apps/openmw/mwrender/localmap.cpp index f33ef35a526..968903f6a37 100644 --- a/apps/openmw/mwrender/localmap.cpp +++ b/apps/openmw/mwrender/localmap.cpp @@ -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();