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