Merge pull request #2553 from AdmiralCurtiss/cpu-engine-selection-fix

Config: Fix incorrect array length detection for CPU Emulation Engine options.
This commit is contained in:
flacs 2015-06-07 21:40:38 +02:00
commit 82fa01804c
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void GeneralConfigPane::LoadGUIValues()
m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ); m_force_ntscj_checkbox->SetValue(startup_params.bForceNTSCJ);
m_frame_limit_choice->SetSelection(SConfig::GetInstance().m_Framelimit); 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) if (cpu_cores[i].CPUid == startup_params.iCPUCore)
m_cpu_engine_radiobox->SetSelection(i); m_cpu_engine_radiobox->SetSelection(i);