mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Fix bug if string is empty
This commit is contained in:
@@ -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 ));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user