mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 15:45:35 +00:00
Fix(CS): Fix crash when loading cell without VHGT
This commit is contained in:
parent
59486ceb06
commit
4f91288a5e
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ namespace ESMTerrain
|
||||||
color[i] = colourData->getColors()[srcArrayIndex + i];
|
color[i] = colourData->getColors()[srcArrayIndex + i];
|
||||||
|
|
||||||
// Does nothing by default, override in OpenMW-CS
|
// Does nothing by default, override in OpenMW-CS
|
||||||
if (alteration)
|
if (alteration && heightData != nullptr)
|
||||||
adjustColor(col, row, heightData, color);
|
adjustColor(col, row, heightData, color);
|
||||||
|
|
||||||
// Unlike normals, colors mostly connect seamlessly between cells, but not always...
|
// Unlike normals, colors mostly connect seamlessly between cells, but not always...
|
||||||
|
|
Loading…
Reference in a new issue