mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fix strfind ignoring its last parameter (bug 4070, r=dvander).
This commit is contained in:
parent
e3824c4c87
commit
a31621dd0c
@ -1035,7 +1035,7 @@ static cell AMX_NATIVE_CALL n_strfind(AMX *amx, cell *params)
|
||||
if (params[4] > len)
|
||||
return -1;
|
||||
|
||||
char *find = strstr(str, sub);
|
||||
char *find = strstr(str + params[4], sub);
|
||||
|
||||
if (!find)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user