File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -9271,7 +9271,7 @@ void ship_cleanup(int shipnum, int cleanup_mode)
92719271 if (The_mission.ai_profile->flags[AI::Profile_Flags::Cancel_future_waves_of_any_wing_launched_from_an_exited_ship]) {
92729272 for (int child_wingnum = 0; child_wingnum < Num_wings; ++child_wingnum) {
92739273 auto child_wingp = &Wings[child_wingnum];
9274- if (child_wingp->arrival_location == ArrivalLocation::FROM_DOCK_BAY && child_wingp->arrival_anchor == shipnum ) {
9274+ if (child_wingp->arrival_location == ArrivalLocation::FROM_DOCK_BAY && Parse_names.in_bounds( child_wingp->arrival_anchor) && !stricmp(Parse_names[child_wingp->arrival_anchor].c_str(), shipp->ship_name) ) {
92759275 // prevent any more waves from arriving by marking this as the last wave
92769276 child_wingp->num_waves = child_wingp->current_wave;
92779277
You can’t perform that action at this time.
0 commit comments