Fix bug if string is empty

This commit is contained in:
Fletcher Dunn
2021-10-26 20:13:33 -07:00
parent 517abb63a5
commit 3479b4afaf
+1 -1
View File
@@ -402,7 +402,7 @@ void V_SplitString2( const char *pString, const char * const *pSeparators, int n
{
outStrings.AddToTail( AllocString( pCurPos, -1 ) );
}
else if (bIncludeEmptyStrings)
else if (bIncludeEmptyStrings && pCurPos > pString)
{
outStrings.AddToTail( AllocString( "" , 1 ));
}