Merge pull request #343 from Arkshine/fix/typo-lookuplangkey
Fix LookupLangKey retrieving invalid index
This commit is contained in:
commit
664c25bdac
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user