Skip to content

Commit

Permalink
clear Parse_names on mission init
Browse files Browse the repository at this point in the history
When a new mission is loaded, clear the parse names vector, in lieu of the old `Num_parse_names = 0;` line.  This fixes a bug where FRED will complain about nonexistent ships when loading a different mission.  Follow-up to scp-fs2open#5937.
  • Loading branch information
Goober5000 committed Jun 25, 2024
1 parent 31452e3 commit 3bce3fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/mission/missionparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6754,6 +6754,7 @@ void mission_init(mission *pm)
mission_parse_reset_callsign();
ai_lua_reset_general_orders();

Parse_names.clear();
Num_path_restrictions = 0;
Num_ai_dock_names = 0;
ai_clear_goal_target_names();
Expand Down

0 comments on commit 3bce3fd

Please sign in to comment.