Fix LookupLangKey retrieving invalid index
This commit is contained in:
parent
cba4c74f94
commit
78619d3710
|
@ -4511,7 +4511,7 @@ static cell AMX_NATIVE_CALL LookupLangKey(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
char *key=get_amxstring(amx,params[3],0,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)
|
if (def==NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user