diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index 82d3d657..6cde5b9b 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -378,7 +378,8 @@ static cell_t smn_KvJumpToKey(IPluginContext *pCtx, const cell_t *params) 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) { return 0;