fixed references leak

This commit is contained in:
Nikolay Korolev 2019-07-19 22:45:58 +03:00
parent 2c647ef228
commit fe03ba825a

View File

@ -535,7 +535,7 @@ CEntity::ResolveReferences(void)
for(ref = m_pFirstReference; ref->next; ref = ref->next)
;
ref->next = CReferences::pEmptyList;
CReferences::pEmptyList = ref;
CReferences::pEmptyList = m_pFirstReference;
m_pFirstReference = nil;
}
}