summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/psxcounters.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c
index ebfb0612..12b84117 100644
--- a/libpcsxcore/psxcounters.c
+++ b/libpcsxcore/psxcounters.c
@@ -465,9 +465,11 @@ void psxRcntInit()
s32 psxRcntFreeze( gzFile f, s32 Mode )
{
- s8 unused[ 4096 - sizeof(rcnts) ];
+ s8 unused[ 4096 - (sizeof(rcnts) + sizeof(hSyncCount) + sizeof(spuSyncCount)) ];
gzfreezel( rcnts );
+ gzfreeze( &hSyncCount, sizeof(hSyncCount) );
+ gzfreeze( &spuSyncCount, sizeof(spuSyncCount) );
gzfreezel( unused );
return 0;