From ca7ebffc8a3e21e12e035670dee65279c646a26e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 7 May 2007 00:03:37 +0000 Subject: [PATCH] oops --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40757 --- core/smn_keyvalues.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index 71e9d5051..8803f1770 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -653,7 +653,7 @@ static cell_t smn_KvNodesInStack(IPluginContext *pCtx, const cell_t *params) return pCtx->ThrowNativeError("Invalid key value handle %x (error %d)", hndl, herr); } - return pStk->pCurRoot.size(); + return pStk->pCurRoot.size() - 1; } static cell_t smn_KvDeleteThis(IPluginContext *pContext, const cell_t *params)