Fix an out of bound buffer index

This commit is contained in:
Arkshine 2016-01-07 19:42:47 +01:00
parent 0af2c0e4c1
commit 4662109980

View File

@ -688,7 +688,7 @@ reswitch:
auto currParam = params[arg++];
lang = playerlang(*get_amxaddr(amx, currParam));
if (!lang)
lang = get_amxstring(amx, currParam, 4, len);
lang = get_amxstring(amx, currParam, 2, len);
}
else
{