Core/ResourceManager: Fix Purge() compilation

This commit is contained in:
Lynix 2016-10-27 10:40:41 +02:00
parent b81b774c51
commit f867c20c7c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ namespace Nz
while (it != Type::s_managerMap.end())
{
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());
Type::s_managerMap.erase(it++); // Then we erase it