summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authorWes Hampson <thehambone93@gmail.com>2020-03-11 08:12:40 +0100
committerWes Hampson <thehambone93@gmail.com>2020-03-11 08:12:40 +0100
commitc7f16879df25fc962b67716e1f82881595451a5f (patch)
treef265c30c4b45536ba8787f487c0a5cff381f904d /src/core/common.h
parentSave SimpleVars, Scripts, and a few others (diff)
downloadre3-c7f16879df25fc962b67716e1f82881595451a5f.tar
re3-c7f16879df25fc962b67716e1f82881595451a5f.tar.gz
re3-c7f16879df25fc962b67716e1f82881595451a5f.tar.bz2
re3-c7f16879df25fc962b67716e1f82881595451a5f.tar.lz
re3-c7f16879df25fc962b67716e1f82881595451a5f.tar.xz
re3-c7f16879df25fc962b67716e1f82881595451a5f.tar.zst
re3-c7f16879df25fc962b67716e1f82881595451a5f.zip
Diffstat (limited to '')
-rw-r--r--src/core/common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/common.h b/src/core/common.h
index cadcac1d..9a5cdb38 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -321,9 +321,9 @@ _TWEEKCLASS(CTweakFloat, float);
#undef _TWEEKCLASS
#ifdef VALIDATE_SAVE_SIZE
-extern int32 _bufBytesRead;
-#define INITSAVEBUF _bufBytesRead = 0;
-#define VALIDATESAVEBUF(b) assert(_bufBytesRead == b);
+extern int32 _saveBufCount;
+#define INITSAVEBUF _saveBufCount = 0;
+#define VALIDATESAVEBUF(b) assert(_saveBufCount == b);
#else
#define INITSAVEBUF
#define VALIDATESAVEBUF(b)
@@ -333,7 +333,7 @@ inline void SkipSaveBuf(uint8 *&buf, int32 skip)
{
buf += skip;
#ifdef VALIDATE_SAVE_SIZE
- _bufBytesRead += skip;
+ _saveBufCount += skip;
#endif
}