Fixed a crash: the singleton needs to be instantiated the first time SGCommandMgr::instance() is called

This commit is contained in:
bcoconni
2013-11-24 14:50:11 +01:00
parent 8e01acaa12
commit 01ace109ba

View File

@@ -42,7 +42,7 @@ SGCommandMgr::~SGCommandMgr ()
SGCommandMgr*
SGCommandMgr::instance()
{
return static_instance;
return static_instance ? static_instance : new SGCommandMgr;
}
void