aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2018-12-12 03:18:14 +0100
committerStapleButter <thetotalworm@gmail.com>2018-12-12 03:18:14 +0100
commitaffe1c084f910f3e24befbc35540566a466c34fd (patch)
treed0b09dd6c37dd3eabf878942b8c9b19b9ea6dbaf
parenta8f2267a187e20e43f492f98da13cd3fec44aa98 (diff)
can't hurt to fix that, either, I guess
-rw-r--r--src/NDSCart.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index 4bac343..cca5cfa 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -134,6 +134,7 @@ void LoadSave(const char* path, u32 type)
}
else
{
+ if (type > 8) type = 0;
int sramlen[] = {0, 512, 8192, 65536, 256*1024, 512*1024, 1024*1024, 8192*1024, 32768*1024};
SRAMLength = sramlen[type];