summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-01 21:49:01 +0200
committerwithmorten <morten.with@gmail.com>2021-07-01 21:49:01 +0200
commitf7816c577f8da9854982219e47d3de9a4d597b25 (patch)
tree4853d92d4c2398cac7b83303ff00a59142686833 /src
parentzero out work_buff before writing padding in save (diff)
downloadre3-f7816c577f8da9854982219e47d3de9a4d597b25.tar
re3-f7816c577f8da9854982219e47d3de9a4d597b25.tar.gz
re3-f7816c577f8da9854982219e47d3de9a4d597b25.tar.bz2
re3-f7816c577f8da9854982219e47d3de9a4d597b25.tar.lz
re3-f7816c577f8da9854982219e47d3de9a4d597b25.tar.xz
re3-f7816c577f8da9854982219e47d3de9a4d597b25.tar.zst
re3-f7816c577f8da9854982219e47d3de9a4d597b25.zip
Diffstat (limited to '')
-rw-r--r--src/save/SaveBuf.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/save/SaveBuf.h b/src/save/SaveBuf.h
index 1b79c956..98fe888b 100644
--- a/src/save/SaveBuf.h
+++ b/src/save/SaveBuf.h
@@ -47,15 +47,15 @@ WriteSaveBuf(uint8 *&buf, const T &value)
#ifdef VALIDATE_SAVE_SIZE
#define CheckSaveHeader(buf, a, b, c, d, size) do { \
- char _C; uint32 _size;\
- ReadSaveBuf(&_C, buf);\
- assert(_C == a);\
- ReadSaveBuf(&_C, buf);\
- assert(_C == b);\
- ReadSaveBuf(&_C, buf);\
- assert(_C == c);\
- ReadSaveBuf(&_C, buf);\
- assert(_C == d);\
+ char _c; uint32 _size;\
+ ReadSaveBuf(&_c, buf);\
+ assert(_c == a);\
+ ReadSaveBuf(&_c, buf);\
+ assert(_c == b);\
+ ReadSaveBuf(&_c, buf);\
+ assert(_c == c);\
+ ReadSaveBuf(&_c, buf);\
+ assert(_c == d);\
ReadSaveBuf(&_size, buf);\
assert(_size == size);\
} while(0)