diff options
author | Paul Gilbert | 2011-11-28 21:27:43 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-11-28 21:27:43 +1100 |
commit | e3758f5a5a224c6399eb359fa3331591a2033158 (patch) | |
tree | ab81500acd89bb97092d67e6ed683fd4df92b2c5 /engines/tsage | |
parent | 712100b77e59115605df9ec9c3e14656373e27fd (diff) | |
download | scummvm-rg350-e3758f5a5a224c6399eb359fa3331591a2033158.tar.gz scummvm-rg350-e3758f5a5a224c6399eb359fa3331591a2033158.tar.bz2 scummvm-rg350-e3758f5a5a224c6399eb359fa3331591a2033158.zip |
TSAGE: Fixed array subscript in dialog button loop
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_dialogs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_dialogs.cpp b/engines/tsage/ringworld2/ringworld2_dialogs.cpp index ade76d501a..997f8ccd6d 100644 --- a/engines/tsage/ringworld2/ringworld2_dialogs.cpp +++ b/engines/tsage/ringworld2/ringworld2_dialogs.cpp @@ -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); |