mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-14 14:50:24 +02: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:
1 parent
56e8b740f1
commit
f8a5c5c10b
1 file changed
+1
-1
@@ -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