fixed a bug in how functions were retrieved

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40344
This commit is contained in:
David Anderson 2007-01-25 01:59:37 +00:00
parent 23a2d86140
commit c656a1343b

View File

@ -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;