From 014e5118e9aaa16c8a2b83c47b690fa117b295ef Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Sat, 9 Dec 2023 11:50:16 -0600 Subject: [PATCH] Fix(CS): Fix crash when loading cell without VHGT --- components/esmterrain/storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esmterrain/storage.cpp b/components/esmterrain/storage.cpp index 35ec814aa2..b43b996996 100644 --- a/components/esmterrain/storage.cpp +++ b/components/esmterrain/storage.cpp @@ -346,7 +346,7 @@ namespace ESMTerrain color[i] = colourData->getColors()[srcArrayIndex + i]; // Does nothing by default, override in OpenMW-CS - if (alteration) + if (alteration && heightData != nullptr) adjustColor(col, row, heightData, color); // Unlike normals, colors mostly connect seamlessly between cells, but not always...