mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 10:23:44 +00:00
zero out work_buff before writing padding in save
This commit is contained in:
parent
a3964dfd4a
commit
2071abd295
1 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,11 @@ GenericSave(int file)
|
|||
WriteSaveDataBlock(CStreaming::MemoryCardSave);
|
||||
WriteSaveDataBlock(CPedType::Save);
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue