X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=db0b1ec89313ef481205e3f4ade4221e54622d89;hb=1a32b0f81d56e67157e13ab46735eeaee2bbf9d5;hp=bebec87601d86f606f025e649b6e490c56831f00;hpb=54b375e0d7031d0fae9deb0f7ba815793ae4115e;p=pcsx_rearmed.git diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index bebec876..db0b1ec8 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -70,7 +70,9 @@ static const s32 VerboseLevel = VERBOSE_LEVEL; /******************************************************************************/ +#ifndef NEW_DYNAREC Rcnt rcnts[ CounterQuantity ]; +#endif u32 hSyncCount = 0; u32 frame_counter = 0; @@ -496,7 +498,7 @@ s32 psxRcntFreeze( void *f, s32 Mode ) u32 count; s32 i; - gzfreeze( &rcnts, sizeof(rcnts) ); + gzfreeze( &rcnts, sizeof(Rcnt) * CounterQuantity ); gzfreeze( &hSyncCount, sizeof(hSyncCount) ); gzfreeze( &spuSyncCount, sizeof(spuSyncCount) ); gzfreeze( &psxNextCounter, sizeof(psxNextCounter) );