additional safety check for land texture listing merge stage

This commit is contained in:
Marc Zinnschlag 2015-08-31 11:10:58 +02:00
parent b0641934d4
commit 69045d7ec9

View file

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