Unify checks for missing COM_Parse() token

This commit is contained in:
Zack Middleton committed 2017-06-07 19:16:05 -05:00
1 parent d58234a6c7
commit 1048073e26
4 files changed
+15 -15

No files matched your search

+2 -2
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;
}