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:
parent
0c45e26c98
commit
2b660a47c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue