[IGfxWorld] Reflection null check missing
This commit is contained in:
parent
0218c76a26
commit
79c38f44f3
@ -597,7 +597,10 @@ namespace Assets
|
|||||||
|
|
||||||
for (unsigned int i = 0; i < asset->reflectionProbeCount; ++i)
|
for (unsigned int i = 0; i < asset->reflectionProbeCount; ++i)
|
||||||
{
|
{
|
||||||
imageDest[i] = builder->saveSubAsset(Game::XAssetType::ASSET_TYPE_IMAGE, asset->reflectionImages[i]).image;
|
if (asset->reflectionImages[i])
|
||||||
|
{
|
||||||
|
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