We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d93d56e + b546d89 commit ec23f6bCopy full SHA for ec23f6b
code/missionui/missionweaponchoice.cpp
@@ -4030,6 +4030,10 @@ void wl_apply_current_loadout_to_all_ships_in_current_wing()
4030
// get the slot for this ship
4031
cur_wss_slot = cur_wing_block * MAX_WING_SLOTS + cur_wing_slot;
4032
4033
+ // make sure there is actually a ship here
4034
+ if (Wss_slots[cur_wss_slot].ship_class < 0)
4035
+ continue;
4036
+
4037
// get the ship's name and class
4038
sip = &Ship_info[Wss_slots[cur_wss_slot].ship_class];
4039
ss_return_name(cur_wing_block, cur_wing_slot, ship_name);
0 commit comments