Fixed fate error about number of wheels (#7800)
This commit is contained in:
parent
18035969fe
commit
ec7d8fd037
|
@ -37,12 +37,12 @@ void CarlaRecorderAnimWheels::Read(std::istream &InFile)
|
||||||
ReadValue<uint32_t>(InFile, DatabaseId);
|
ReadValue<uint32_t>(InFile, DatabaseId);
|
||||||
uint32_t NumWheels = 0;
|
uint32_t NumWheels = 0;
|
||||||
ReadValue<uint32_t>(InFile, NumWheels);
|
ReadValue<uint32_t>(InFile, NumWheels);
|
||||||
WheelValues.reserve(NumWheels);
|
WheelValues.resize(NumWheels);
|
||||||
for (size_t i = 0; i < NumWheels; ++i)
|
for (size_t i = 0; i < NumWheels; ++i)
|
||||||
{
|
{
|
||||||
WheelInfo Wheel;
|
WheelInfo Wheel;
|
||||||
Wheel.Read(InFile);
|
Wheel.Read(InFile);
|
||||||
WheelValues.push_back(Wheel);
|
WheelValues[i] = Wheel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue