Fixed crash
Former-commit-id: 4388600646138181546d59d6602b1e1cacaf59ec
This commit is contained in:
parent
7f2888a346
commit
75de88066b
|
|
@ -114,7 +114,6 @@ void NzResource::NotifyCreated()
|
||||||
auto it = m_resourceListeners.begin();
|
auto it = m_resourceListeners.begin();
|
||||||
while (it != m_resourceListeners.end())
|
while (it != m_resourceListeners.end())
|
||||||
{
|
{
|
||||||
ResourceListenerMap::iterator iterator = it++;
|
|
||||||
if (!it->first->OnResourceCreated(this, it->second.first))
|
if (!it->first->OnResourceCreated(this, it->second.first))
|
||||||
RemoveResourceListenerIterator(it++);
|
RemoveResourceListenerIterator(it++);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue