summaryrefslogtreecommitdiffstats
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-17 13:19:20 +0200
committeraap <aap@papnet.eu>2019-07-17 13:19:20 +0200
commit0f1fbf5e9a7477c6fbb7645491598e87ed2e183e (patch)
tree713a8e10b3657d4c3a0d9c20c3704e0da8f9357e /src/control/Script.cpp
parentMerge pull request #139 from Nick007J/master (diff)
downloadre3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.gz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.bz2
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.lz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.xz
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.tar.zst
re3-0f1fbf5e9a7477c6fbb7645491598e87ed2e183e.zip
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 5e9f51af..85e27956 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2050,7 +2050,7 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
CollectParameters(&m_nIp, 2);
CVehicle* car = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
assert(car);
- car->AutoPilot.m_nCruiseSpeed = min(*(float*)&ScriptParams[1], 60.0f * car->m_handling->TransmissionData.fUnkMaxVelocity);
+ car->AutoPilot.m_nCruiseSpeed = min(*(float*)&ScriptParams[1], 60.0f * car->pHandling->Transmission.fUnkMaxVelocity);
return 0;
}
case COMMAND_SET_CAR_DRIVING_STYLE: