mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-25 20:01:59 -05:00
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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user