GCMemcardDirectory: Check if UsesBlock result is non-negative

The only negative result UsesBlock can return is -1, so this change
doesn't affect anything in practice, but makes the intent a little bit
clearer.
This commit is contained in:
JosJuice
2026-09-20 22:18:45 +02:00
parent 56e8b740f1
commit f8a5c5c10b

View File

@@ -536,7 +536,7 @@ inline s32 GCMemcardDirectory::SaveAreaRW(u32 block, bool writing)
}
const int idx = m_saves[i].UsesBlock(block);
if (idx != -1)
if (idx >= 0)
{
if (!m_saves[i].LoadSaveBlocks())
{