diff -r e5dfa46553f4 -r ce166c465bad core/sourcemod.cpp --- a/core/sourcemod.cpp Mon Jan 01 18:36:27 2007 +0000 +++ b/core/sourcemod.cpp Mon Jan 01 19:50:16 2007 +0000 @@ -5,7 +5,7 @@ #include "vm/sp_vm_engine.h" #include #include "PluginSys.h" -#include "ForwardSys.h" +#include "ShareSys.h" SH_DECL_HOOK6(IServerGameDLL, LevelInit, SH_NOATTRIB, false, bool, const char *, const char *, const char *, const char *, bool, bool); @@ -16,6 +16,7 @@ SourceHook::String g_BaseDir; ISourcePawnEngine *g_pSourcePawn = &g_SourcePawn; IVirtualMachine *g_pVM; +IdentityToken_t *g_pCoreIdent = NULL; typedef int (*GIVEENGINEPOINTER)(ISourcePawnEngine *); typedef unsigned int (*GETEXPORTCOUNT)(); @@ -139,6 +140,9 @@ pBase = pBase->m_pGlobalClassNext; } + /* Make the global core identity */ + g_pCoreIdent = g_ShareSys.CreateCoreIdentity(); + /* Notify! */ pBase = SMGlobalClass::head; while (pBase)