diff -r 2342df60789c -r de0e374ffa47 core/vm/sp_vm_basecontext.cpp --- a/core/vm/sp_vm_basecontext.cpp Tue Jan 02 02:59:49 2007 +0000 +++ b/core/vm/sp_vm_basecontext.cpp Thu Jan 04 02:08:27 2007 +0000 @@ -252,11 +252,9 @@ int BaseContext::FindNativeByName(const char *name, uint32_t *index) { - int diff, high, low; - uint32_t mid; + int high; high = ctx->plugin->info.natives_num - 1; - low = 0; #if 0 while (low <= high) @@ -786,3 +784,15 @@ return SP_ERROR_NONE; } + +#if defined SOURCEMOD_BUILD +SourceMod::IdentityToken_t *BaseContext::GetIdentity() +{ + return m_pToken; +} + +void BaseContext::SetIdentity(SourceMod::IdentityToken_t *token) +{ + m_pToken = token; +} +#endif