Fixed KvDeleteKey and KvGetNameSymbol not working from the root node (#2388)

This commit is contained in:
Bradasparky
2026-01-15 19:31:01 -05:00
committed by GitHub
parent c310db4b95
commit 6baf01ac3b
+2 -2
View File
@@ -945,7 +945,7 @@ static cell_t smn_KvDeleteKey(IPluginContext *pContext, const cell_t *params)
return pContext->ThrowNativeError("Invalid key value handle %x (error %d)", hndl, herr);
}
if (pStk->pCurRoot.size() < 2)
if (pStk->pCurRoot.size() < 1)
{
return 0;
}
@@ -1038,7 +1038,7 @@ static cell_t smn_GetNameSymbol(IPluginContext *pContext, const cell_t *params)
return pContext->ThrowNativeError("Invalid key value handle %x (error %d)", hndl, herr);
}
if (pStk->pCurRoot.size() < 2)
if (pStk->pCurRoot.size() < 1)
{
return 0;
}