mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix utlstring bug
Fixed V_strstr overloading by swapping order of parameters.
This commit is contained in:
parent
789ecbc234
commit
22f68ff22a
@ -19,7 +19,7 @@ static const int64 k_nMillion = 1000000;
|
||||
//-----------------------------------------------------------------------------
|
||||
static ptrdiff_t IndexOf(const char *pstrToSearch, const char *pstrTarget)
|
||||
{
|
||||
const char *pstrHit = V_strstr(pstrToSearch, pstrTarget);
|
||||
const char *pstrHit = V_strstr(pstrTarget, pstrToSearch);
|
||||
if (pstrHit == NULL)
|
||||
{
|
||||
return -1; // Not found.
|
||||
|
Loading…
x
Reference in New Issue
Block a user