summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-18 18:37:49 +0200
committerGitHub <noreply@github.com>2020-10-18 18:37:49 +0200
commit497c1792455a13f7ea0750274c9ba4b3e26830db (patch)
treece2c434d0aba2a12b27d04d9ccf70502f05cf4c5 /src/vehicles/Automobile.cpp
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
parentfix in ped attractor (diff)
downloadre3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.gz
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.bz2
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.lz
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.xz
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.zst
re3-497c1792455a13f7ea0750274c9ba4b3e26830db.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-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 395f3917..d1a7505e 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