summaryrefslogtreecommitdiffstats
path: root/src/save/SaveBuf.h
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-07-12 00:07:32 +0200
committerGitHub <noreply@github.com>2021-07-12 00:07:32 +0200
commit02e84b4b978b2d17ae9a52ae95b2617902c94150 (patch)
tree6721fa10727d0fb7221e0c7131a78c56b5a47df2 /src/save/SaveBuf.h
parentAdd PED DENSITY and CAR DENSITY lines to GXT (diff)
parentfinish COMPATIBLE_SAVES and FIX_INCOMPATIBLE_SAVES (diff)
downloadre3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar.gz
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar.bz2
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar.lz
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar.xz
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.tar.zst
re3-02e84b4b978b2d17ae9a52ae95b2617902c94150.zip
Diffstat (limited to 'src/save/SaveBuf.h')
-rw-r--r--src/save/SaveBuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/save/SaveBuf.h b/src/save/SaveBuf.h
index 6e9b3ae9..d0817e9a 100644
--- a/src/save/SaveBuf.h
+++ b/src/save/SaveBuf.h
@@ -64,6 +64,14 @@ WriteSaveBuf(uint8 *&buf, uint32 &length, const T &value)
return p;
}
+#ifdef COMPATIBLE_SAVES
+inline void
+ZeroSaveBuf(uint8 *&buf, uint32 length)
+{
+ memset(buf, 0, length);
+ SkipSaveBuf(buf, length);
+}
+#endif
#define SAVE_HEADER_SIZE (4*sizeof(char)+sizeof(uint32))