Merge pull request #327 from Arkshine/fix/replace_stringex
Fix typo in replace_stringex native
This commit is contained in:
commit
866339eff6
|
@ -348,12 +348,12 @@ static cell AMX_NATIVE_CALL replace_stringex(AMX *amx, cell *params)
|
|||
|
||||
char *ptr = UTIL_ReplaceEx(text, maxlength + 1, search, searchLen, replace, replaceLen, caseSensitive); // + EOS
|
||||
|
||||
if (ptr == NULL)
|
||||
if (!ptr)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
set_amxstring(amx, params[1], ptr, maxlength);
|
||||
set_amxstring(amx, params[1], text, maxlength);
|
||||
|
||||
return ptr - text;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user