fixed a bug where KvJumpToKey did not obey the internal path stack
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40732
This commit is contained in:
parent
45d5518b11
commit
9219fbb96c
@ -378,7 +378,8 @@ static cell_t smn_KvJumpToKey(IPluginContext *pCtx, const cell_t *params)
|
|||||||
|
|
||||||
pCtx->LocalToString(params[2], &name);
|
pCtx->LocalToString(params[2], &name);
|
||||||
|
|
||||||
KeyValues *pSubKey = pStk->pBase->FindKey(name, (params[3]) ? true : false);
|
KeyValues *pSubKey = pStk->pCurRoot.front();
|
||||||
|
pSubKey = pSubKey->FindKey(name, (params[3]) ? true : false);
|
||||||
if (!pSubKey)
|
if (!pSubKey)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user