X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=db0b1ec89313ef481205e3f4ade4221e54622d89;hb=cd2d587936d9d83af6fd47360103f0e79dcb4341;hp=bebec87601d86f606f025e649b6e490c56831f00;hpb=93c9e42aa5323ad40cf65b7ea11c54e5616d8624;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) );