Skip to content

Commit 77b1abf

Browse files
committed
MemoryCard: Fix off-by-one reporting in card number
1 parent 8a732de commit 77b1abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/memory_card.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ std::unique_ptr<MemoryCard> MemoryCard::Open(u32 index, std::string path)
328328
{
329329
Host::AddIconOSDMessage(
330330
GetOSDMessageKey(index), ICON_EMOJI_WARNING,
331-
fmt::format(TRANSLATE_FS("MemoryCard", "Memory Card {} could not be read."), index),
331+
fmt::format(TRANSLATE_FS("MemoryCard", "Memory Card {} could not be read."), index + 1),
332332
fmt::format(TRANSLATE_FS("MemoryCard", "File: {0}\nError: {1}\nThe memory card will NOT be saved.\nYou must "
333333
"delete the memory card manually if you want to save."),
334334
Path::GetFileName(mc->m_path), error.GetDescription()),

0 commit comments

Comments
 (0)