diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index c6eddc36..985e7805 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -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; }