diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index 6b68c65b20..7b56287ee9 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -77,13 +77,13 @@ public: setData(game_path, FullPathRole); setData(qulonglong(program_id), ProgramIdRole); - Loader::SMDH smdh; if (!Loader::IsValidSMDH(smdh_data)) { // SMDH is not valid, set a default icon setData(GetDefaultIcon(true), Qt::DecorationRole); return; } - + + Loader::SMDH smdh; memcpy(&smdh, smdh_data.data(), sizeof(Loader::SMDH)); // Get icon from SMDH