Merge pull request #343 from Arkshine/fix/typo-lookuplangkey

Fix LookupLangKey retrieving invalid index
This commit is contained in:
Vincent Herbet 2016-02-01 21:32:23 +01:00
commit 664c25bdac

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