summaryrefslogtreecommitdiffstats
path: root/src/save/SaveBuf.h
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-07-01 21:51:52 +0200
committerwithmorten <morten.with@gmail.com>2021-07-01 21:51:52 +0200
commit65219365db5129d37bdd3be95e45ef5d4db8bc51 (patch)
tree9da70783e7960220903379cddd97b377647e221e /src/save/SaveBuf.h
parentFix sound of water when changing MSAA or windowed/fullscreen mode (diff)
downloadre3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar.gz
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar.bz2
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar.lz
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar.xz
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.tar.zst
re3-65219365db5129d37bdd3be95e45ef5d4db8bc51.zip
Diffstat (limited to '')
-rw-r--r--src/save/SaveBuf.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/save/SaveBuf.h b/src/save/SaveBuf.h
index de27017e..6e9b3ae9 100644
--- a/src/save/SaveBuf.h
+++ b/src/save/SaveBuf.h
@@ -83,29 +83,29 @@ WriteSaveBuf(uint8 *&buf, uint32 &length, 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)
#define CheckSaveHeaderWithLength(buf,len,a,b,c,d,size) do { \
- char _C; uint32 _size;\
- ReadSaveBuf(&_C, buf, len);\
- assert(_C == a);\
- ReadSaveBuf(&_C, buf, len);\
- assert(_C == b);\
- ReadSaveBuf(&_C, buf, len);\
- assert(_C == c);\
- ReadSaveBuf(&_C, buf, len);\
- assert(_C == d);\
+ char _c; uint32 _size;\
+ ReadSaveBuf(&_c, buf, len);\
+ assert(_c == a);\
+ ReadSaveBuf(&_c, buf, len);\
+ assert(_c == b);\
+ ReadSaveBuf(&_c, buf, len);\
+ assert(_c == c);\
+ ReadSaveBuf(&_c, buf, len);\
+ assert(_c == d);\
ReadSaveBuf(&_size, buf, len);\
assert(_size == size);\
} while(0)