Fixed KvDeleteKey and KvGetNameSymbol not working from the root node (#2388)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user