summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-17 17:50:16 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-17 17:50:16 +0200
commit1195f3db7beb1b79f0c25aad69a11b58d59363f2 (patch)
treed0e9f21b3b3f3b20299116cac5fc59db564f8481 /src/vehicles/Automobile.cpp
parentcranes done (diff)
downloadre3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar.gz
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar.bz2
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar.lz
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar.xz
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.tar.zst
re3-1195f3db7beb1b79f0c25aad69a11b58d59363f2.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 1316985d..69388a96 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -59,7 +59,7 @@ bool CAutomobile::m_sAllTaxiLights;
const uint32 CAutomobile::nSaveStructSize =
#ifdef COMPATIBLE_SAVES
- 1448;
+ 1500;
#else
sizeof(CAutomobile);
#endif
@@ -5713,7 +5713,7 @@ CAutomobile::Save(uint8*& buf)
{
CVehicle::Save(buf);
WriteSaveBuf<CDamageManager>(buf, Damage);
- SkipSaveBuf(buf, 800 - sizeof(CDamageManager));
+ SkipSaveBuf(buf, 1500 - 672 - sizeof(CDamageManager));
}
void
@@ -5721,7 +5721,7 @@ CAutomobile::Load(uint8*& buf)
{
CVehicle::Load(buf);
Damage = ReadSaveBuf<CDamageManager>(buf);
- SkipSaveBuf(buf, 800 - sizeof(CDamageManager));
+ SkipSaveBuf(buf, 1500 - 672 - sizeof(CDamageManager));
SetupDamageAfterLoad();
}
#endif