Open
Description
Since #1068 was merged, a false debug error appears during game cleanup in VS22 and in Debug mode:
It's because TheGlobalData is allocated much earlier now (probably earlier than the DebugMemoryTracker) and during deallocation it complains (probably because the memory debugger doesn't know about the allocation).
I think we can fix this by changing GlobalData.cpp:
GlobalData* GlobalData::m_theOriginal = NULL;
into
GlobalData GlobalData::m_theOriginal;
and use that as storage for the first GlobalData instance.