Fix the crash on startup if instances are created before the instance

tracking is initialized.
This commit is contained in:
JoelKatz
2012-12-20 08:46:57 -08:00
parent 8e201277a6
commit ca25c6c3fb
3 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
#include "InstanceCounter.h"
InstanceType* InstanceType::sHeadInstance = NULL;
bool InstanceType::sMultiThreaded = false;
std::vector<InstanceType::InstanceCount> InstanceType::getInstanceCounts(int min)
{