diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp b/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp index 304c7922d9..74f176bd1a 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp +++ b/Source/Core/Core/HW/GCMemcard/GCMemcardDirectory.cpp @@ -728,7 +728,7 @@ void GCMemcardDirectory::DoState(PointerWrap& p) p.Do(m_dir2); p.Do(m_bat1); p.Do(m_bat2); - p.DoEachElement(m_saves, [](PointerWrap& p, Memcard::GCIFile& save) { save.DoState(p); }); + p.DoEachElement(m_saves, [](PointerWrap& p_, Memcard::GCIFile& save) { save.DoState(p_); }); } void MigrateFromMemcardFile(const std::string& directory_name, ExpansionInterface::Slot card_slot,