From 78619d3710de976e0103d6bc21d1ccac32565447 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Mon, 1 Feb 2016 14:48:32 +0100 Subject: [PATCH] Fix LookupLangKey retrieving invalid index --- amxmodx/amxmodx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 41adea06..9a06649b 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -4511,7 +4511,7 @@ static cell AMX_NATIVE_CALL LookupLangKey(AMX *amx, cell *params) { int len; char *key=get_amxstring(amx,params[3],0,len); - const char *def=translate(amx, playerlang(params[4]),key); + const char *def=translate(amx, playerlang(*get_amxaddr(amx, params[4])),key); if (def==NULL) {