From 75822ec22758f5b3a7b25137d816f595495cd2f6 Mon Sep 17 00:00:00 2001 From: Lev Date: Wed, 30 Apr 2014 15:42:03 +0200 Subject: [PATCH] Reset the status variable on success (bug 5994, r=arkshine) --- amxmodx/CLang.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index 83cf30c3..4b98041a 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -218,6 +218,7 @@ const char * CLangMngr::CLang::GetDef(int key, int &status) return NULL; } + status = 0; return def.definition->c_str(); } @@ -572,6 +573,7 @@ const char *CLangMngr::GetDef(const char *langName, const char *key, int &status status = ERR_BADKEY; return NULL; } else { + status = 0; return lang->GetDef(val.index, status); } }