aboutsummaryrefslogtreecommitdiff
path: root/source/srtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/srtc.c')
-rw-r--r--source/srtc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/srtc.c b/source/srtc.c
index bdb2970..e86b6b2 100644
--- a/source/srtc.c
+++ b/source/srtc.c
@@ -343,8 +343,10 @@ void S9xSRTCPreSaveState()
{
if (Settings.SRTC)
{
+ int32_t s;
+
S9xUpdateSrtcTime();
- int32_t s = Memory.SRAMSize ? (1 << (Memory.SRAMSize + 3)) * 128 : 0;
+ s = Memory.SRAMSize ? (1 << (Memory.SRAMSize + 3)) * 128 : 0;
if (s > 0x20000)
s = 0x20000;