summaryrefslogtreecommitdiffstats
path: root/src/control/CarGen.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-10 16:18:19 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-10 16:18:19 +0200
commitaa173a454ceaa32b2bc752fa3648f06e64b90064 (patch)
tree2bb65f79dbb5cbe1c5c570ced31304ccad7b2bf6 /src/control/CarGen.cpp
parentAdded read/write template functions for save data, small Load/Save arguments unification (diff)
downloadre3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar.gz
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar.bz2
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar.lz
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar.xz
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.tar.zst
re3-aa173a454ceaa32b2bc752fa3648f06e64b90064.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/CarGen.cpp b/src/control/CarGen.cpp
index 9766467d..49a96f50 100644
--- a/src/control/CarGen.cpp
+++ b/src/control/CarGen.cpp
@@ -187,7 +187,7 @@ bool CCarGenerator::CheckIfWithinRangeOfAnyPlayer()
return DotProduct2D(direction, FindPlayerSpeed()) <= 0;
}
-void CCarGenerator::Save(uint8 *buffer)
+void CCarGenerator::Save(uint8 *&buffer)
{
WriteSaveBuf(buffer, m_nModelIndex);
WriteSaveBuf(buffer, m_vecPos);
@@ -214,7 +214,7 @@ void CCarGenerator::Save(uint8 *buffer)
}
-void CCarGenerator::Load(uint8 *buffer)
+void CCarGenerator::Load(uint8 *&buffer)
{
m_nModelIndex = ReadSaveBuf<uint32>(buffer);
m_vecPos = ReadSaveBuf<CVector>(buffer);