Unify checks for missing COM_Parse() token

This commit is contained in:
Zack Middleton 2017-06-07 19:16:05 -05:00
parent d58234a6c7
commit 1048073e26
4 changed files with 15 additions and 15 deletions

View file

@ -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;
}