Skip to content

Commit 66c0d27

Browse files
authored
Merge pull request scp-fs2open#1618 from MageKing17/bugfix/ai-profiles-parsing-end
Make AI profile tables actually stop parsing if #End is missing.
2 parents 206364a + ac9547d commit 66c0d27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

code/ai/ai_profiles.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ void parse_ai_profiles_tbl(const char *filename)
498498
}
499499

500500
// find next valid option
501-
skip_to_start_of_string_either("$", "#");
501+
if (!skip_to_start_of_string_either("$", "#"))
502+
break;
502503
saved_Mp = Mp;
503504
}
504505
}

0 commit comments

Comments
 (0)