mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Fix an out of bound buffer index
This commit is contained in:
parent
0af2c0e4c1
commit
4662109980
@ -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…
Reference in New Issue
Block a user