diff --git a/LEGO1/mxomni.cpp b/LEGO1/mxomni.cpp index 66f2f36f..8a6f0296 100644 --- a/LEGO1/mxomni.cpp +++ b/LEGO1/mxomni.cpp @@ -207,10 +207,9 @@ MxResult MxOmni::Create(MxOmniCreateParam &p) if (p.CreateFlags().CreateTickleManager()) { - MxTickleManager *tickleManager = new MxTickleManager(); - this->m_tickleManager = tickleManager; + this->m_tickleManager = new MxTickleManager(); - if (tickleManager == NULL) + if (m_tickleManager == NULL) goto failure; } @@ -279,8 +278,6 @@ MxResult MxOmni::Create(MxOmniCreateParam &p) } } - - result = SUCCESS; failure: if (result != SUCCESS)