Skip to content

Commit

Permalink
FIX: Initialize mixed_load_prohibition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranran-the-JuicyPork committed Jul 12, 2019
1 parent c0d649f commit 7218d0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion descriptor/reader/vehicle_reader.cc
Expand Up @@ -513,7 +513,6 @@ obj_desc_t *vehicle_reader_t::read_node(FILE *fp, obj_node_info_t &node)
desc->can_be_at_rear = (bool)decode_uint8(p);
desc->basic_constraint_prev = vehicle_desc_t::unknown_constraint;
desc->basic_constraint_next = vehicle_desc_t::unknown_constraint;
desc->mixed_load_prohibition = false;
}
desc->increase_maintenance_after_years = decode_uint16(p);
desc->increase_maintenance_by_percent = decode_uint16(p);
Expand Down
2 changes: 1 addition & 1 deletion descriptor/vehicle_desc.h
Expand Up @@ -264,7 +264,7 @@ class vehicle_desc_t : public obj_desc_transport_related_t {
weight = weight;
engine_type = (uint8)engine;
topspeed = speed;
is_tilting = bidirectional = can_lead_from_rear = available_only_as_upgrade = false;
mixed_load_prohibition = is_tilting = bidirectional = can_lead_from_rear = available_only_as_upgrade = false;
// These two lines are necessary for the building of way objects, so that they
// do not get stuck with constraints.
way_constraints.set_permissive(0);
Expand Down

0 comments on commit 7218d0b

Please sign in to comment.