diff options
| author | Silarn <jrim@rimpo.org> | 2018-04-27 20:24:20 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2018-04-27 20:24:20 -0500 |
| commit | 86c97c7c064faa8357c0f88f57d90ddab82d6d0a (patch) | |
| tree | 716df1a6b9633ddae372b4a20054db04416f792e /src/pluginlist.cpp | |
| parent | 3114bcbd8dffd60f158dd5a164f5192ed8323f96 (diff) | |
4096 was the correct number
Diffstat (limited to 'src/pluginlist.cpp')
| -rw-r--r-- | src/pluginlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 7642c87f..f4bdf418 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -497,8 +497,8 @@ int PluginList::getIndexPriority(int index) const ++numESLs;
}
if (m_ESPs[index].m_IsLight || m_ESPs[index].m_IsLightFlagged) {
- int ESLpos = 254 + ((numESLs + 1) / 2048);
- return ESLpos + (numESLs % 2048);
+ int ESLpos = 254 + ((numESLs + 1) / 4096);
+ return ESLpos + (numESLs % 4096);
} else {
return m_ESPs[index].m_LoadOrder - numESLs;
}
@@ -821,8 +821,8 @@ QVariant PluginList::data(const QModelIndex &modelIndex, int role) const ++numESLs;
}
if (m_ESPs[index].m_IsLight || m_ESPs[index].m_IsLightFlagged) {
- int ESLpos = 254 + ((numESLs+1) / 2048);
- return QString("%1:%2").arg(ESLpos, 2, 16, QChar('0')).arg((numESLs)%2048, 3, 16, QChar('0')).toUpper();
+ int ESLpos = 254 + ((numESLs+1) / 4096);
+ return QString("%1:%2").arg(ESLpos, 2, 16, QChar('0')).arg((numESLs)%4096, 3, 16, QChar('0')).toUpper();
} else {
return QString("%1").arg(m_ESPs[index].m_LoadOrder - numESLs, 2, 16, QChar('0')).toUpper();
}
|
