From c656a1343b3387feeab37b03c1de10ca0182a61c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 25 Jan 2007 01:59:37 +0000 Subject: [PATCH] fixed a bug in how functions were retrieved --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40344 --- core/vm/sp_vm_basecontext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/vm/sp_vm_basecontext.cpp b/core/vm/sp_vm_basecontext.cpp index 96b6a7fe..ac505533 100644 --- a/core/vm/sp_vm_basecontext.cpp +++ b/core/vm/sp_vm_basecontext.cpp @@ -872,6 +872,7 @@ IPluginFunction *BaseContext::GetFunctionById(funcid_t func_id) if (!pFunc) { m_pub_funcs[func_id] = new CFunction(save, this); + pFunc = m_pub_funcs[func_id]; } } else { func_id >>= 1; @@ -884,6 +885,7 @@ IPluginFunction *BaseContext::GetFunctionById(funcid_t func_id) if (!pFunc) { m_priv_funcs[func_id] = new CFunction(save, this); + pFunc = m_priv_funcs[func_id]; } } @@ -908,6 +910,7 @@ IPluginFunction *BaseContext::GetFunctionByName(const char *public_name) { m_pub_funcs[index] = new CFunction(pub->funcid, this); } + pFunc = m_pub_funcs[index]; } return pFunc;