Skip to content

Commit

Permalink
TSAGE: Fixed array subscript in dialog button loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Nov 28, 2011
1 parent 712100b commit e3758f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/tsage/ringworld2/ringworld2_dialogs.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit e3758f5

Please sign in to comment.