From 40d342e48f1da056f5b69cf34471d6ff6ad48ed5 Mon Sep 17 00:00:00 2001 From: riccardom Date: Fri, 2 Apr 2010 13:45:54 +0000 Subject: [PATCH] ROMfullName is already zero'ed before, no need to do it for each entry. I swear, i was looking there for another issue. --- desmume/src/NDSSystem.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 458e116a3..9f8ffa6eb 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -326,7 +326,6 @@ void GameInfo::populate() u8 num = (T1ReadByte((u8*)romdata, header.IconOff) == 1)?6:7; for (int i = 0; i < num; i++) { - memset(ROMfullName[i],0,sizeof(ROMfullName[i])); wcstombs(ROMfullName[i], (wchar_t *)(romdata+header.IconOff+0x240+(i*0x100)), 0x100); trim(ROMfullName[i]); }