Core/ResourceManager: Fix Purge() compilation
This commit is contained in:
parent
b81b774c51
commit
f867c20c7c
|
|
@ -78,7 +78,7 @@ namespace Nz
|
||||||
while (it != Type::s_managerMap.end())
|
while (it != Type::s_managerMap.end())
|
||||||
{
|
{
|
||||||
const ObjectRef<Type>& ref = it->second;
|
const ObjectRef<Type>& ref = it->second;
|
||||||
if (ref.GetReferenceCount() == 1) // Are we the only ones to own the resource ?
|
if (ref->GetReferenceCount() == 1) // Are we the only ones to own the resource ?
|
||||||
{
|
{
|
||||||
NazaraDebug("Purging resource from file " + ref->GetFilePath());
|
NazaraDebug("Purging resource from file " + ref->GetFilePath());
|
||||||
Type::s_managerMap.erase(it++); // Then we erase it
|
Type::s_managerMap.erase(it++); // Then we erase it
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue