From 6c097398d15979253633a0c36a4500321473d84b Mon Sep 17 00:00:00 2001 From: withmorten Date: Mon, 12 Jul 2021 22:47:17 +0200 Subject: [PATCH] fix FixGarages --- src/save/GenericGameStorage.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 12565e3f..d080512e 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -828,6 +828,13 @@ FixGarages(uint8 save_type, uint8 *buf, uint8 *buf2, uint32 *size) SkipBuf(buf2, sizeof(CStoredCar)); } + + *size = 0; + + assert(buf - buf_start == read); + assert(buf2 - buf2_start == written); + + *size = 7876; } static void