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:
parent
23a2d86140
commit
c656a1343b
@ -872,6 +872,7 @@ IPluginFunction *BaseContext::GetFunctionById(funcid_t func_id)
|
|||||||
if (!pFunc)
|
if (!pFunc)
|
||||||
{
|
{
|
||||||
m_pub_funcs[func_id] = new CFunction(save, this);
|
m_pub_funcs[func_id] = new CFunction(save, this);
|
||||||
|
pFunc = m_pub_funcs[func_id];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
func_id >>= 1;
|
func_id >>= 1;
|
||||||
@ -884,6 +885,7 @@ IPluginFunction *BaseContext::GetFunctionById(funcid_t func_id)
|
|||||||
if (!pFunc)
|
if (!pFunc)
|
||||||
{
|
{
|
||||||
m_priv_funcs[func_id] = new CFunction(save, this);
|
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);
|
m_pub_funcs[index] = new CFunction(pub->funcid, this);
|
||||||
}
|
}
|
||||||
|
pFunc = m_pub_funcs[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
return pFunc;
|
return pFunc;
|
||||||
|
Loading…
Reference in New Issue
Block a user