public: use Q_strchr in COM_FixSlashes
This commit is contained in:
parent
58bfa247a4
commit
bc32f37fce
1 changed files with 2 additions and 3 deletions
|
@ -677,10 +677,9 @@ Changes all '\' characters into '/' characters, in place.
|
|||
*/
|
||||
void COM_FixSlashes( char *pname )
|
||||
{
|
||||
for( ; *pname; pname++ )
|
||||
while(( pname = Q_strchr( pname, '\\' )))
|
||||
{
|
||||
if( *pname == '\\' )
|
||||
*pname = '/';
|
||||
*pname = '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue