diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cf875a..430529d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project roughly adheres to [Semantic Versioning](https://semver.org/spe - Fixed a bug where native BIOS images would be used when the core was supposed to fall back to built-in system files. +- Fixed a bug where GBA SRAM wouldn't be loaded. ## [1.1.1] - 2024-02-29 diff --git a/src/libretro/core/core.cpp b/src/libretro/core/core.cpp index 8087621..568e4be 100644 --- a/src/libretro/core/core.cpp +++ b/src/libretro/core/core.cpp @@ -667,7 +667,7 @@ void MelonDsDs::CoreState::InitContent(unsigned type, std::span 2 && game[2].path != nullptr && game[2].size > 0) { + if (game.size() > 2 && game[2].path != nullptr) { // If we got a GBA SRAM file... _gbaSaveInfo = game[2]; }