summaryrefslogtreecommitdiffstats
path: root/src/control/AutoPilot.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-02-03 13:35:06 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-02-03 13:35:06 +0100
commitf6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7 (patch)
tree1ba36c9b086def2debf4ca87a649f4ba33e7b2e4 /src/control/AutoPilot.cpp
parentMerge pull request #1020 from erorcun/master (diff)
downloadre3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar.gz
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar.bz2
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar.lz
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar.xz
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.tar.zst
re3-f6326606b7dc6e1058dd17f8db0f3cb3e9f4e9b7.zip
Diffstat (limited to 'src/control/AutoPilot.cpp')
-rw-r--r--src/control/AutoPilot.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/control/AutoPilot.cpp b/src/control/AutoPilot.cpp
index 4038c93e..77cbd0b4 100644
--- a/src/control/AutoPilot.cpp
+++ b/src/control/AutoPilot.cpp
@@ -52,8 +52,8 @@ void CAutoPilot::Save(uint8*& buf)
WriteSaveBuf<int32>(buf, m_nCurrentRouteNode);
WriteSaveBuf<int32>(buf, m_nNextRouteNode);
WriteSaveBuf<int32>(buf, m_nPrevRouteNode);
- WriteSaveBuf<uint32>(buf, m_nTimeEnteredCurve);
- WriteSaveBuf<uint32>(buf, m_nTimeToSpendOnCurrentCurve);
+ WriteSaveBuf<int32>(buf, m_nTimeEnteredCurve);
+ WriteSaveBuf<int32>(buf, m_nTimeToSpendOnCurrentCurve);
WriteSaveBuf<uint32>(buf, m_nCurrentPathNodeInfo);
WriteSaveBuf<uint32>(buf, m_nNextPathNodeInfo);
WriteSaveBuf<uint32>(buf, m_nPreviousPathNodeInfo);
@@ -91,8 +91,8 @@ void CAutoPilot::Load(uint8*& buf)
m_nCurrentRouteNode = ReadSaveBuf<int32>(buf);
m_nNextRouteNode = ReadSaveBuf<int32>(buf);
m_nPrevRouteNode = ReadSaveBuf<int32>(buf);
- m_nTimeEnteredCurve = ReadSaveBuf<uint32>(buf);
- m_nTimeToSpendOnCurrentCurve = ReadSaveBuf<uint32>(buf);
+ m_nTimeEnteredCurve = ReadSaveBuf<int32>(buf);
+ m_nTimeToSpendOnCurrentCurve = ReadSaveBuf<int32>(buf);
m_nCurrentPathNodeInfo = ReadSaveBuf<uint32>(buf);
m_nNextPathNodeInfo = ReadSaveBuf<uint32>(buf);
m_nPreviousPathNodeInfo = ReadSaveBuf<uint32>(buf);