[IGfxWorld] Reflection null check missing
This commit is contained in:
parent
0218c76a26
commit
79c38f44f3
@ -596,9 +596,12 @@ namespace Assets
|
|||||||
buffer->saveArray(asset->reflectionImages, asset->reflectionProbeCount);
|
buffer->saveArray(asset->reflectionImages, asset->reflectionProbeCount);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < asset->reflectionProbeCount; ++i)
|
for (unsigned int i = 0; i < asset->reflectionProbeCount; ++i)
|
||||||
|
{
|
||||||
|
if (asset->reflectionImages[i])
|
||||||
{
|
{
|
||||||
imageDest[i] = builder->saveSubAsset(Game::XAssetType::ASSET_TYPE_IMAGE, asset->reflectionImages[i]).image;
|
imageDest[i] = builder->saveSubAsset(Game::XAssetType::ASSET_TYPE_IMAGE, asset->reflectionImages[i]).image;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Utils::Stream::ClearPointer(&dest->reflectionImages);
|
Utils::Stream::ClearPointer(&dest->reflectionImages);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user