diff options
author | withmorten <morten.with@gmail.com> | 2021-07-01 18:09:32 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-07-01 18:09:32 +0200 |
commit | 2d38eb923dc7e584fa12a628d9152901b8604092 (patch) | |
tree | 8af31a0ec2561dfd8119218b1dc48fbcda3d6178 /src | |
parent | fix (diff) | |
download | re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar.gz re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar.bz2 re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar.lz re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar.xz re3-2d38eb923dc7e584fa12a628d9152901b8604092.tar.zst re3-2d38eb923dc7e584fa12a628d9152901b8604092.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 84ab118c..a56ff2c3 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -251,6 +251,11 @@ GenericSave(int file) WriteSaveDataBlock(CStreaming::MemoryCardSave, "StreamingSize"); WriteSaveDataBlock(CPedType::Save, "PedTypeSize"); + // sure just write garbage data repeatedly ... +#ifndef THIS_IS_STUPID + memset(work_buff, 0, sizeof(work_buff)); +#endif + // Write padding for (int i = 0; i < 4; i++) { size = align4bytes(SIZE_OF_ONE_GAME_IN_BYTES - totalSize - 4); |