engine: fix parsing -bugcomp flags, assume bugcomp flags only starts with alphabetic character

This commit is contained in:
Alibek Omarov 2024-05-03 06:28:48 +03:00
parent 37083c8aef
commit 31c0934108
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ static uint32_t Host_CheckBugcomp( void )
if( !Sys_CheckParm( "-bugcomp" ))
return 0;
if( Sys_GetParmFromCmdLine( "-bugcomp", args ) && args[0] != '-' )
if( Sys_GetParmFromCmdLine( "-bugcomp", args ) && isalpha( args[0] ))
{
for( prev = args, next = Q_strchrnul( prev, '+' ); ; prev = next + 1, next = Q_strchrnul( prev, '+' ))
{