Merge pull request #331 from Arkshine/fix/buffer-oob
Fix an out of bound buffer index
This commit is contained in:
commit
a64dbe0268
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user