Unify checks for missing COM_Parse() token
This commit is contained in:
parent
d58234a6c7
commit
1048073e26
4 changed files with 15 additions and 15 deletions
|
@ -1417,7 +1417,7 @@ qboolean CG_Load_Menu(char **p) {
|
|||
return qtrue;
|
||||
}
|
||||
|
||||
if ( !token || token[0] == 0 ) {
|
||||
if (!token[0]) {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
@ -1464,7 +1464,7 @@ void CG_LoadMenus(const char *menuFile) {
|
|||
|
||||
while ( 1 ) {
|
||||
token = COM_ParseExt( &p, qtrue );
|
||||
if( !token || token[0] == 0 || token[0] == '}') {
|
||||
if (!token[0]) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue