zero out work_buff before writing padding in save

This commit is contained in:
withmorten 2021-07-01 18:09:32 +02:00
parent cb72fee941
commit 2d38eb923d

View File

@ -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);