Redo ReadSaveBuf + common.h cleanup

This commit is contained in:
Sergeanur
2021-06-25 19:03:51 +03:00
parent 6152f02333
commit 2b67aba94c
26 changed files with 398 additions and 337 deletions
+2 -1
View File
@@ -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();
}