HPL1: fix bug in function that returns free save slot

This commit is contained in:
grisenti 2022-08-24 11:50:55 +02:00 committed by Eugene Sandulenko
parent f0fdb51faf
commit ceeb9105cb
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -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 "";