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:
Adam Honse 2020-03-23 23:40:18 -05:00
parent 0c45e26c98
commit 2b660a47c7

View file

@ -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 |