mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +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) {
|
||||
for (int i = 0; i < maxSaves; ++i) {
|
||||
const Common::String name = engine->getSaveStateName(i);
|
||||
if (g_system->getSavefileManager()->exists(name))
|
||||
if (!g_system->getSavefileManager()->exists(name))
|
||||
return name;
|
||||
}
|
||||
return "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user