Fix compilation issue for wheel slip

This commit is contained in:
Paul Dino Jones 2024-03-05 00:36:34 -05:00
parent e29cc12ab4
commit 34e9ba4405
1 changed files with 4 additions and 4 deletions

View File

@ -45,19 +45,19 @@ int sounddev_tyreslip_update(SimDevice* this, SimData* simdata)
double play = 0; double play = 0;
if (this->tyre == FRONTLEFT || this->tyre == FRONTS || this->tyre == ALLFOUR) if (this->tyre == FRONTLEFT || this->tyre == FRONTS || this->tyre == ALLFOUR)
{ {
play += simdata->wheelslip0; play += simdata->wheelslip[0];
} }
if (this->tyre == FRONTRIGHT || this->tyre == FRONTS || this->tyre == ALLFOUR) if (this->tyre == FRONTRIGHT || this->tyre == FRONTS || this->tyre == ALLFOUR)
{ {
play += simdata->wheelslip1; play += simdata->wheelslip[1];
} }
if (this->tyre == REARLEFT || this->tyre == REARS || this->tyre == ALLFOUR) if (this->tyre == REARLEFT || this->tyre == REARS || this->tyre == ALLFOUR)
{ {
play += simdata->wheelslip2; play += simdata->wheelslip[2];
} }
if (this->tyre == REARRIGHT || this->tyre == REARS || this->tyre == ALLFOUR) if (this->tyre == REARRIGHT || this->tyre == REARS || this->tyre == ALLFOUR)
{ {
play += simdata->wheelslip3; play += simdata->wheelslip[3];
} }
if (play > 0) if (play > 0)
{ {