summaryrefslogtreecommitdiffstats
path: root/src/control/AutoPilot.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-12-09 01:31:03 +0100
committerGitHub <noreply@github.com>2020-12-09 01:31:03 +0100
commitac3484b82e0bd286ddd1e56fb566303d7a3ca40d (patch)
treef6c95cfd85cb2261f010983f01fd6d62a6de5ef1 /src/control/AutoPilot.cpp
parentfix CObject::DeleteAllTempObjectsInArea (diff)
parentuint8 enums fixed (diff)
downloadre3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.gz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.bz2
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.lz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.xz
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.tar.zst
re3-ac3484b82e0bd286ddd1e56fb566303d7a3ca40d.zip
Diffstat (limited to 'src/control/AutoPilot.cpp')
-rw-r--r--src/control/AutoPilot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/AutoPilot.cpp b/src/control/AutoPilot.cpp
index 1b14e3d7..a899518b 100644
--- a/src/control/AutoPilot.cpp
+++ b/src/control/AutoPilot.cpp
@@ -109,9 +109,9 @@ void CAutoPilot::Load(uint8*& buf)
m_nNextDirection = ReadSaveBuf<int8>(buf);
m_nCurrentLane = ReadSaveBuf<int8>(buf);
m_nNextLane = ReadSaveBuf<int8>(buf);
- m_nDrivingStyle = (eCarDrivingStyle)ReadSaveBuf<uint8>(buf);
- m_nCarMission = (eCarMission)ReadSaveBuf<uint8>(buf);
- m_nTempAction = (eCarTempAction)ReadSaveBuf<uint8>(buf);
+ m_nDrivingStyle = ReadSaveBuf<uint8>(buf);
+ m_nCarMission = ReadSaveBuf<uint8>(buf);
+ m_nTempAction = ReadSaveBuf<uint8>(buf);
m_nTimeTempAction = ReadSaveBuf<uint32>(buf);
m_fMaxTrafficSpeed = ReadSaveBuf<float>(buf);
m_nCruiseSpeed = ReadSaveBuf<uint8>(buf);