diff options
author | withmorten <morten.with@gmail.com> | 2021-06-26 19:14:46 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-06-26 19:14:46 +0200 |
commit | f3a931e1c99372ae4bc224ef482d4052a09580cb (patch) | |
tree | 13992380234e68b8f1a32030b4df6aa3d6ebbaca /src/vehicles/Automobile.cpp | |
parent | Merge pull request #1155 from leanndroguedes/master (diff) | |
download | re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar.gz re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar.bz2 re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar.lz re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar.xz re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.tar.zst re3-f3a931e1c99372ae4bc224ef482d4052a09580cb.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index c29c0536..7be6ed0b 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -45,6 +45,7 @@ #include "Object.h" #include "Automobile.h" #include "Wanted.h" +#include "SaveBuf.h" bool bAllCarCheat; // unused @@ -4724,7 +4725,7 @@ void CAutomobile::Load(uint8*& buf) { CVehicle::Load(buf); - Damage = ReadSaveBuf<CDamageManager>(buf); + ReadSaveBuf(&Damage, buf); SkipSaveBuf(buf, 800 - sizeof(CDamageManager)); SetupDamageAfterLoad(); } |