]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/commands.cxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / commands.cxx
index 9a41093653d25a4346c3b439f40e538aae11e1fb..752f880c2ad13c60eb36f63e987516a8e77d4854 100644 (file)
@@ -42,7 +42,7 @@ SGCommandMgr::~SGCommandMgr ()
 SGCommandMgr*
 SGCommandMgr::instance()
 {
-    return static_instance;
+    return static_instance ? static_instance : new SGCommandMgr;
 }
 
 void