1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 06:45:35 +00:00

Fix(CS): Fix crash when loading cell without VHGT

This commit is contained in:
Dave Corley 2023-12-09 11:50:16 -06:00
parent 3e7335ddc7
commit 014e5118e9

View file

@ -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...