From 34e9ba4405d1ba30843f54a90823c1add90ba0c4 Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Tue, 5 Mar 2024 00:36:34 -0500 Subject: [PATCH] Fix compilation issue for wheel slip --- src/monocoque/devices/sounddevice.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/monocoque/devices/sounddevice.c b/src/monocoque/devices/sounddevice.c index 7050d0c..4813c31 100644 --- a/src/monocoque/devices/sounddevice.c +++ b/src/monocoque/devices/sounddevice.c @@ -45,19 +45,19 @@ int sounddev_tyreslip_update(SimDevice* this, SimData* simdata) double play = 0; 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) { - play += simdata->wheelslip1; + play += simdata->wheelslip[1]; } 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) { - play += simdata->wheelslip3; + play += simdata->wheelslip[3]; } if (play > 0) {