From 2b660a47c7e4807b91eeeda513eeb9f308bb57e6 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 23 Mar 2020 23:40:18 -0500 Subject: [PATCH] Fix wrong index being used in profile lookup that would cause segfaults if there are more controllers detected than in profile --- ProfileManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProfileManager.cpp b/ProfileManager.cpp index 907a5478..b31f881d 100644 --- a/ProfileManager.cpp +++ b/ProfileManager.cpp @@ -154,7 +154,7 @@ bool ProfileManager::LoadProfileWithOptions for(std::size_t temp_index = 0; temp_index < temp_controllers.size(); temp_index++) { - RGBController *temp_controller = temp_controllers[controller_index]; + RGBController *temp_controller = temp_controllers[temp_index]; /*---------------------------------------------------------*\ | Test if saved controller data matches this controller |