mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-07 05:41:13 -05:00
Fix wrong index being used in profile lookup that would cause segfaults if there are more controllers detected than in profile
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user