Fixed profiler being set to NULL (bug 4143, r=fyren).

This commit is contained in:
David Anderson 2009-12-14 23:08:15 -08:00
parent 8e1f37a5d2
commit 726ee43736
2 changed files with 4 additions and 2 deletions

View File

@ -126,6 +126,6 @@ private:
prof_point_t m_ProfStart; prof_point_t m_ProfStart;
}; };
extern ProfileEngine g_Profiler; extern IProfiler *sm_profiler;
#endif //_INCLUDE_SOURCEMOD_PLUGIN_PROFILER_H_ #endif //_INCLUDE_SOURCEMOD_PLUGIN_PROFILER_H_

View File

@ -35,6 +35,7 @@
#include "common_logic.h" #include "common_logic.h"
#include "ThreadSupport.h" #include "ThreadSupport.h"
#include "TextParsers.h" #include "TextParsers.h"
#include "Profiler.h"
sm_core_t smcore; sm_core_t smcore;
IHandleSys *handlesys; IHandleSys *handlesys;
@ -52,7 +53,8 @@ IForwardManager *forwardsys;
static sm_logic_t logic = static sm_logic_t logic =
{ {
NULL, NULL,
g_pThreader g_pThreader,
sm_profiler
}; };
static void logic_init(const sm_core_t* core, sm_logic_t* _logic) static void logic_init(const sm_core_t* core, sm_logic_t* _logic)