Fix LookupLangKey retrieving invalid index

This commit is contained in:
Arkshine 2016-02-01 14:48:32 +01:00
parent cba4c74f94
commit 78619d3710

View File

@ -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)
{