Fix an off by one error.
This commit is contained in:
parent
46b7625668
commit
ab029ab5d6
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ std::vector<tbutton_definition::tresolution>::const_iterator get_button(const st
|
|||
screen_height <= itor->window_height) {
|
||||
|
||||
return itor;
|
||||
} else if (itor == end) {
|
||||
} else if (itor == end - 1) {
|
||||
return itor;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue