mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 05:38:04 +03:00
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++];
|
auto currParam = params[arg++];
|
||||||
lang = playerlang(*get_amxaddr(amx, currParam));
|
lang = playerlang(*get_amxaddr(amx, currParam));
|
||||||
if (!lang)
|
if (!lang)
|
||||||
lang = get_amxstring(amx, currParam, 4, len);
|
lang = get_amxstring(amx, currParam, 2, len);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user