File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3775,7 +3775,6 @@ void parse_common_object_data(p_object *p_objp)
37753775 if (optional_string (" $Damage:" ))
37763776 stuff_float (&Subsys_status[i].percent );
37773777
3778- Subsys_status[i].subsys_cargo_name = 0 ;
37793778 if (optional_string (" +Cargo Name:" )) {
37803779 char cargo_name[NAME_LENGTH];
37813780 stuff_string (cargo_name, F_NAME, NAME_LENGTH);
@@ -3793,7 +3792,6 @@ void parse_common_object_data(p_object *p_objp)
37933792 Subsys_status[i].subsys_cargo_name = index;
37943793 }
37953794
3796- Subsys_status[i].subsys_cargo_title [0 ] = ' \0 ' ;
37973795 if (optional_string (" +Cargo Title:" )) {
37983796 stuff_string (Subsys_status[i].subsys_cargo_title , F_NAME, NAME_LENGTH);
37993797 }
@@ -8266,6 +8264,7 @@ int allocate_subsys_status()
82668264 Subsys_status[Subsys_index].ai_class = SUBSYS_STATUS_NO_CHANGE;
82678265
82688266 Subsys_status[Subsys_index].subsys_cargo_name = 0 ; // "Nothing"
8267+ Subsys_status[Subsys_index].subsys_cargo_title [0 ] = ' \0 ' ;
82698268
82708269 return Subsys_index++;
82718270}
Original file line number Diff line number Diff line change @@ -6702,6 +6702,7 @@ void ship::clear()
67026702 pre_death_explosion_happened = 0;
67036703 wash_killed = 0; // serenity lies
67046704 cargo1 = 0; // "Nothing"
6705+ cargo_title[0] = '\0';
67056706
67066707 wing_status_wing_index = -1;
67076708 wing_status_wing_pos = -1;
@@ -7730,6 +7731,7 @@ static int subsys_set(int objnum, int ignore_subsys_info)
77307731 ship_system->optimum_range = model_system->optimum_range;
77317732 ship_system->favor_current_facing = model_system->favor_current_facing;
77327733 ship_system->subsys_cargo_name = 0;
7734+ ship_system->subsys_cargo_title[0] = '\0';
77337735 ship_system->time_subsys_cargo_revealed = 0;
77347736
77357737 j = 0;
You can’t perform that action at this time.
0 commit comments