1.1 --- a/core/vm/sp_vm_basecontext.cpp Tue Jan 02 02:59:49 2007 +0000
1.2 +++ b/core/vm/sp_vm_basecontext.cpp Thu Jan 04 02:08:27 2007 +0000
1.3 @@ -252,11 +252,9 @@
1.4
1.5 int BaseContext::FindNativeByName(const char *name, uint32_t *index)
1.6 {
1.7 - int diff, high, low;
1.8 - uint32_t mid;
1.9 + int high;
1.10
1.11 high = ctx->plugin->info.natives_num - 1;
1.12 - low = 0;
1.13
1.14 #if 0
1.15 while (low <= high)
1.16 @@ -786,3 +784,15 @@
1.17
1.18 return SP_ERROR_NONE;
1.19 }
1.20 +
1.21 +#if defined SOURCEMOD_BUILD
1.22 +SourceMod::IdentityToken_t *BaseContext::GetIdentity()
1.23 +{
1.24 + return m_pToken;
1.25 +}
1.26 +
1.27 +void BaseContext::SetIdentity(SourceMod::IdentityToken_t *token)
1.28 +{
1.29 + m_pToken = token;
1.30 +}
1.31 +#endif