additional safety check for land texture listing merge stage

sceneinput
Marc Zinnschlag 9 years ago
parent b0641934d4
commit 69045d7ec9

@ -130,7 +130,7 @@ void CSMTools::ListLandTexturesMergeStage::perform (int stage, CSMDoc::Messages&
land.loadData (ESM::Land::DATA_VHGT | ESM::Land::DATA_VNML |
ESM::Land::DATA_VCLR | ESM::Land::DATA_VTEX | ESM::Land::DATA_WNAM);
if (land.mLandData)
if (land.mLandData && land.mDataLoaded & ESM::Land::DATA_VTEX)
{
// list texture indices
std::pair<uint16_t, int> key;

Loading…
Cancel
Save