From 37839b0178b42b57a38a040bbf4e1f410e6952a1 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Mon, 21 Oct 2024 21:20:08 +0200 Subject: [PATCH] RMG: fix out of bounds read in SettingsDialog::loadGamePluginSettings() --- Source/RMG/UserInterface/Dialog/SettingsDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/RMG/UserInterface/Dialog/SettingsDialog.cpp b/Source/RMG/UserInterface/Dialog/SettingsDialog.cpp index 3b1bb49b..5ac69bd2 100644 --- a/Source/RMG/UserInterface/Dialog/SettingsDialog.cpp +++ b/Source/RMG/UserInterface/Dialog/SettingsDialog.cpp @@ -359,7 +359,7 @@ void SettingsDialog::loadGamePluginSettings(void) comboBox = comboBoxArray[index]; comboBox->addItem(QString::fromStdString(p.Name), QString::fromStdString(p.File)); - if (pluginFileName[index] == QString::fromStdString(p.File)) + if (pluginFileNames[index] == QString::fromStdString(p.File)) { comboBox->setCurrentText(QString::fromStdString(p.Name)); pluginFound[index] = true;