Fix utlstring bug

Fixed V_strstr overloading by swapping order of parameters.
This commit is contained in:
Kawe Mazidjatari 2023-07-03 02:06:40 +02:00
parent 789ecbc234
commit 22f68ff22a

View File

@ -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.