From 97c5ff6b6509ca857a8bec74b932002cf430e69b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 22 Jun 2007 17:24:48 +0000 Subject: [PATCH] fixed a bug where the "keyOnly" parameter to KvGotoNextKey was read backwards --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401008 --- core/smn_keyvalues.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index 63500830..ac0fa6c1 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -442,9 +442,9 @@ static cell_t smn_KvGotoNextKey(IPluginContext *pCtx, const cell_t *params) KeyValues *pSubKey = pStk->pCurRoot.front(); if (params[2]) { - pSubKey = pSubKey->GetNextKey(); - } else { pSubKey = pSubKey->GetNextTrueSubKey(); + } else { + pSubKey = pSubKey->GetNextKey(); } if (!pSubKey) {