diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-23 23:47:04 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-23 23:47:04 +0200 |
commit | a7e673c2ec6a5ed25f3bae8caab90e2113158c03 (patch) | |
tree | 8c88859a32b0613a4c28fd1a0432504403e5a5e6 /src/control/Garages.cpp | |
parent | fix premake (diff) | |
download | re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.gz re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.bz2 re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.lz re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.xz re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.tar.zst re3-a7e673c2ec6a5ed25f3bae8caab90e2113158c03.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Garages.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 91971ae7..245e961d 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -2306,6 +2306,9 @@ void CGarages::Save(uint8 * buf, uint32 * size) #else * size = 5484; #endif +#if !defined THIS_IS_STUPID && !defined FIX_GARAGE_SIZE && defined COMPATIBLE_SAVES + memset(buf + 5240, 0, *size - 5240); // garbage data is written otherwise +#endif CloseHideOutGaragesBeforeSave(); WriteSaveBuf(buf, NumGarages); WriteSaveBuf(buf, (uint32)BombsAreFree); |