1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Small fixes

This commit is contained in:
Gymnasiast
2017-12-31 14:54:17 +01:00
parent 1d0799fc0d
commit 81a2c28e1b
2 changed files with 2 additions and 2 deletions

View File

@@ -742,7 +742,7 @@ rct_ride_entry_vehicle RideObject::ReadJsonCar(const json_t * jCar)
rct_ride_entry_vehicle car = { 0 };
car.rotation_frame_mask = ObjectJsonHelpers::GetInteger(jCar, "rotationFrameMask");
car.spacing = ObjectJsonHelpers::GetInteger(jCar, "spacing");
car.car_friction = ObjectJsonHelpers::GetInteger(jCar, "friction");
car.car_mass = ObjectJsonHelpers::GetInteger(jCar, "mass");
car.tab_height = ObjectJsonHelpers::GetInteger(jCar, "tabOffset");
car.num_seats = ObjectJsonHelpers::GetInteger(jCar, "numSeats");
car.sprite_width = ObjectJsonHelpers::GetInteger(jCar, "spriteWidth");

View File

@@ -25,7 +25,7 @@ class RideObject final : public Object
private:
rct_ride_entry _legacyType = { };
vehicle_colour_preset_list _presetColours = { 0 };
std::vector<sint8> _peepLoadingPositions[4];
std::vector<sint8> _peepLoadingPositions[MAX_VEHICLES_PER_RIDE_ENTRY];
public:
explicit RideObject(const rct_object_entry &entry) : Object(entry) { }