- Since the scripting branch relies heavily on the garbage collector to clean up everything,

move the final GC back to after the type system has been shut down.

SVN r3760 (scripting)
This commit is contained in:
Randy Heit 2012-07-14 03:56:56 +00:00
commit 136a2cd05a
3 changed files with 19 additions and 18 deletions

View file

@ -257,7 +257,7 @@ DObject::DObject (PClass *inClass)
DObject::~DObject ()
{
if (!(ObjectFlags & OF_Cleanup))
if (!(ObjectFlags & OF_Cleanup) && !PClass::bShutdown)
{
DObject **probe;
PClass *type = GetClass();