mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
TSAGE: Fixed array subscript in dialog button loop
This commit is contained in:
parent
712100b77e
commit
e3758f5a5a
@ -96,7 +96,7 @@ bool RightClickDialog::process(Event &event) {
|
||||
case EVENT_MOUSE_MOVE: {
|
||||
// Check whether a button is highlighted
|
||||
int buttonIndex;
|
||||
for (buttonIndex = 6; buttonIndex >= 0; --buttonIndex) {
|
||||
for (buttonIndex = 5; buttonIndex >= 0; --buttonIndex) {
|
||||
Rect tempRect(0, 0, 28, 29);
|
||||
tempRect.moveTo(_btnList[buttonIndex].x, _btnList[buttonIndex].y);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user