Skip to content

Commit

Permalink
RMG: fix out of bounds read in SettingsDialog::loadGamePluginSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Oct 21, 2024
1 parent 69c24b9 commit 37839b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/RMG/UserInterface/Dialog/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37839b0

Please sign in to comment.