summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-08-09 16:34:05 +0200
committerwithmorten <morten.with@gmail.com>2021-08-09 16:34:05 +0200
commit858f913facb8ffbb3b4d50a9d65074a07973c711 (patch)
tree0f3dd33aa79ba0fa86998751bb6814443381ca64
parentRevert "small fix" (diff)
downloadre3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar.gz
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar.bz2
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar.lz
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar.xz
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.tar.zst
re3-858f913facb8ffbb3b4d50a9d65074a07973c711.zip
-rw-r--r--src/save/GenericGameStorage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index 798aeb7e..e4ee4542 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -1030,6 +1030,7 @@ FixSave(int32 slot, uint8 save_type)
totalSize = 0;
CFileMgr::Read(file_in, (const char *)&size, sizeof(size));
+ size = align4bytes(size);
buf = work_buff;
CFileMgr::Read(file_in, (const char *)work_buff, size); // simple vars + scripts