aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Savestate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Savestate.cpp b/src/Savestate.cpp
index 9e8a37a..77773e6 100644
--- a/src/Savestate.cpp
+++ b/src/Savestate.cpp
@@ -160,6 +160,8 @@ void Savestate::Section(char* magic)
fseek(file, pos, SEEK_SET);
}
+ CurSection = (u32)ftell(file);
+
fwrite(magic, 4, 1, file);
fseek(file, 12, SEEK_CUR);
}
@@ -185,7 +187,7 @@ void Savestate::Section(char* magic)
continue;
}
- fseek(file, 8, SEEK_CUR);
+ fseek(file, 12, SEEK_CUR);
break;
}
}