Fixed potential crash
Former-commit-id: df8cde180c157f08031cd04d37bb735aa266ee53
This commit is contained in:
@@ -165,7 +165,8 @@ void NzForwardRenderQueue::Clear(bool fully)
|
|||||||
for (auto& overlayPair : overlayMap)
|
for (auto& overlayPair : overlayMap)
|
||||||
{
|
{
|
||||||
const NzTexture* overlay = overlayPair.first;
|
const NzTexture* overlay = overlayPair.first;
|
||||||
overlay->RemoveResourceListener(this);
|
if (overlay)
|
||||||
|
overlay->RemoveResourceListener(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
basicSprites.clear();
|
basicSprites.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user