Skip to content

Commit e4527d5

Browse files
committed
Break from loop if a pic_name is empty
1 parent 1de3738 commit e4527d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/g_umapinfo.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ void ParseUMapInfoLump(int lump, const char* lumpname)
395395
// if any episode title patches are missing, fall back on text name
396396
bool missingeppatch = false;
397397
for (int i = 0; i < MAX_EPISODES; i++) {
398-
missingeppatch = missingeppatch || EpisodeInfos[i].pic_name.empty();
398+
if (EpisodeInfos[i].pic_name.empty()) {
399+
missingeppatch = true;
400+
break;
401+
}
399402
}
400403
for (int i = 0; i < MAX_EPISODES; i++) {
401404
EpisodeInfos[i].fulltext = missingeppatch;

0 commit comments

Comments
 (0)