Unify checks for missing COM_Parse() token
This commit is contained in:
1 parent
d58234a6c7
commit
1048073e26
4 files changed
+15
-15
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user