We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e90a361 commit ea1eb9dCopy full SHA for ea1eb9d
src/menu.cpp
@@ -44,7 +44,7 @@ bool menuOut::needRedraw(menu& m,int i) {
44
(drawn!=&m)//menu changed
45
||(top!=lastTop)//screen scrolled
46
||(m.sel!=lastSel&&((i==m.sel)||(i==lastSel)))//selection changed
47
- ||((prompt*)pgmPtrNear(m.data[i]))->needRedraw(*this,i==m.sel);//reflexivity, value changed
+ ||(i<m.sz&&((prompt*)pgmPtrNear(m.data[i]))->needRedraw(*this,i==m.sel));//reflexivity, value changed
48
}
49
50
//menu navigation engine
0 commit comments