Fixed array index out of bounds in Push2Menu::set_active()

This commit is contained in:
Nathan Stewart 2016-10-09 08:26:59 -04:00 committed by Paul Davis
parent 114bc97f94
commit 0df00465fd

View File

@ -230,7 +230,7 @@ Push2Menu::set_active (uint32_t index)
/* set text color for old active item, and the new one */
if (_active <= displays.size()) {
if (_active < displays.size()) {
displays[_active]->set_color (text_color);
}