diff options
author | Stephen Kennedy | 2008-08-14 23:38:13 +0000 |
---|---|---|
committer | Stephen Kennedy | 2008-08-14 23:38:13 +0000 |
commit | 6d0ed23b4469de23c9d93ab15329f10a8441fd29 (patch) | |
tree | 54ca4e1ed76081bee161a01a15753c5cdbf05680 | |
parent | 86d0c8cb118f21ebeb0180672ecf24823e6d7956 (diff) | |
download | scummvm-rg350-6d0ed23b4469de23c9d93ab15329f10a8441fd29.tar.gz scummvm-rg350-6d0ed23b4469de23c9d93ab15329f10a8441fd29.tar.bz2 scummvm-rg350-6d0ed23b4469de23c9d93ab15329f10a8441fd29.zip |
Fixed crash when clicking on area of remap dialog with no button in
svn-id: r33884
-rw-r--r-- | backends/keymapper/remap-dialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/keymapper/remap-dialog.cpp b/backends/keymapper/remap-dialog.cpp index 0c9d29a7a1..a6917fea7d 100644 --- a/backends/keymapper/remap-dialog.cpp +++ b/backends/keymapper/remap-dialog.cpp @@ -187,6 +187,7 @@ void RemapDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 d } void RemapDialog::startRemapping(uint i) { + if (_topAction + i >= _currentActions.size()) return; _remapTimeout = getMillis() + kRemapTimeoutDelay; _activeRemapAction = _currentActions[_topAction + i].action; _keymapWidgets[i].keyButton->setLabel("..."); |