Merge pull request #331 from Arkshine/fix/buffer-oob

Fix an out of bound buffer index
This commit is contained in:
Vincent Herbet 2016-01-16 12:17:29 +01:00
commit a64dbe0268

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
{