aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-12-31 14:19:02 +0100
committerStapleButter <thetotalworm@gmail.com>2018-12-31 14:19:02 +0100
commiteec27ebf6967d2100924fd79563702ef456a56b6 (patch)
tree79218a209f5aa1a64d9e055d2153a45eac3c423f
parent786abe63cbaf6d2dcfe40d60ac78fe9d7e3443ed (diff)
oops
-rw-r--r--src/NDSCart.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index b0cc378..e102af3 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -134,7 +134,7 @@ void LoadSave(const char* path, u32 type)
}
else
{
- if (type > 8) type = 0;
+ if (type > 9) type = 0;
int sramlen[] = {0, 512, 8192, 65536, 128*1024, 256*1024, 512*1024, 1024*1024, 8192*1024, 32768*1024};
SRAMLength = sramlen[type];