From 3520a1d123d99767c162579214aa1899c3a3fb30 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 7 Jun 2015 19:39:54 +0200 Subject: [PATCH] Config: Fix incorrect array length detection for CPU Emulation Engine options. --- Source/Core/DolphinWX/Config/GeneralConfigPane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp index 9c8c5e361f..5c4a85fc3e 100644 --- a/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/GeneralConfigPane.cpp @@ -99,7 +99,7 @@ void GeneralConfigPane::LoadGUIValues() m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ); m_frame_limit_choice->SetSelection(SConfig::GetInstance().m_Framelimit); - for (size_t i = 0; i < (sizeof(cpu_cores) / sizeof(CPUCore)); ++i) + for (size_t i = 0; i < cpu_cores.size(); ++i) { if (cpu_cores[i].CPUid == startup_params.iCPUCore) m_cpu_engine_radiobox->SetSelection(i);