diff options
| author | Tannin <devnull@localhost> | 2014-12-04 19:27:55 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-12-04 19:27:55 +0100 |
| commit | 9fcf34fec7874f183c2e8f37009da99293c9e318 (patch) | |
| tree | 5131617d82e8829742355fbba7df0f772c1c2f4a /src/profile.cpp | |
| parent | 6c1e63258c75d1b306434373c2dd8b7bb366eabb (diff) | |
bugfix: ini tweaks were not applied in priority order
Diffstat (limited to 'src/profile.cpp')
| -rw-r--r-- | src/profile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/profile.cpp b/src/profile.cpp index 6e9d8f0f..12992291 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -203,8 +203,9 @@ void Profile::createTweakedIniFile() } for (unsigned int i = 0; i < m_ModStatus.size(); ++i) { - if (m_ModStatus[i].m_Enabled) { - ModInfo::Ptr modInfo = ModInfo::getByIndex(i); + unsigned int idx = modIndexByPriority(i); + if ((idx != UINT_MAX) && m_ModStatus[idx].m_Enabled) { + ModInfo::Ptr modInfo = ModInfo::getByIndex(idx); mergeTweaks(modInfo, tweakedIni); } } |
