mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
HPL1: fix bug in function that returns free save slot
This commit is contained in:
parent
f0fdb51faf
commit
ceeb9105cb
@ -70,7 +70,7 @@ void Hpl1Engine::pauseEngineIntern(bool pause) {
|
|||||||
static Common::String freeSaveSlot(const Engine *engine, const int maxSaves) {
|
static Common::String freeSaveSlot(const Engine *engine, const int maxSaves) {
|
||||||
for (int i = 0; i < maxSaves; ++i) {
|
for (int i = 0; i < maxSaves; ++i) {
|
||||||
const Common::String name = engine->getSaveStateName(i);
|
const Common::String name = engine->getSaveStateName(i);
|
||||||
if (g_system->getSavefileManager()->exists(name))
|
if (!g_system->getSavefileManager()->exists(name))
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user