diff --git a/simgear/structure/commands.cxx b/simgear/structure/commands.cxx index 9a410936..752f880c 100644 --- a/simgear/structure/commands.cxx +++ b/simgear/structure/commands.cxx @@ -42,7 +42,7 @@ SGCommandMgr::~SGCommandMgr () SGCommandMgr* SGCommandMgr::instance() { - return static_instance; + return static_instance ? static_instance : new SGCommandMgr; } void