diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2019-03-25 04:42:02 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2019-03-25 04:42:02 -0500 |
| commit | eb9ac6ca246c13a4f7d6d60a9ec3e9018fe209e8 (patch) | |
| tree | 37fc9eac0bd82abf03a43f8594d535b95deddd0d /src/mainwindow.cpp | |
| parent | 043a5fa9412f1d766f5f211beabf4bda8afab73a (diff) | |
Add more protection against missing game plugins
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ea46b175..1569eba5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -5623,7 +5623,7 @@ void MainWindow::nxmEndorsementsAvailable(QVariant userData, QVariant resultData } for (auto game : games) { IPluginGame *gamePlugin = m_OrganizerCore.getGame(game); - if (gamePlugin->gameShortName().compare("SkyrimSE", Qt::CaseInsensitive) == 0) + if (gamePlugin != nullptr && gamePlugin->gameShortName().compare("SkyrimSE", Qt::CaseInsensitive) == 0) searchedMO2NexusGame = true; auto iter = sorted.equal_range(gamePlugin->gameNexusName()); for (auto result = iter.first; result != iter.second; ++result) { |
