diff options
-rw-r--r-- | src/modules/options/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index c76fdd6bfd..1c3c87ad9e 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -636,7 +636,7 @@ static void UnloadOptionsModule(HWND hdlg, OptionsDlgData *dat, HINSTANCE hInst) {
bool bToRebuildTree = false;
- for (int i=0; i < dat->arOpd.getCount(); i++) {
+ for (int i=dat->arOpd.getCount()-1; i >= 0; i--) {
OptionsPageData* opd = dat->arOpd[i];
if (opd->hInst != hInst)
continue;
|