From b3d0fcb2083143dc21c751adafd2523c3555e5d2 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 13 Mar 2013 19:35:20 +0100 Subject: - some more safety checks in the ini-limit removal code - some code cleanup and minor bug fixes based on results from static code analysis - added naemfilter for the esp list - bsa changes are now stored automatically but delayed by up to 0.5 seconds (for performance reasons) - bugfix: buffer overrun when certain functions are called with empty file names - bugfix: reroute for the ini-limit fix was placed in the data segment - bugfix: mod list got mixed up when the mod directory was changed externally - bugfix: plugins.txt reroute on skyrim didn't work on winXP - bugfix: MO could become unresponsive if the tutorial script couldn't be interpreted --- src/pluginlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pluginlist.cpp') diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 486d6f42..25dc69bd 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -602,7 +602,7 @@ QVariant PluginList::data(const QModelIndex &modelIndex, int role) const case COL_PRIORITY: { if (m_ESPs[index].m_Priority == 0) { return tr("min"); - } else if (m_ESPs[index].m_Priority == m_ESPs.size() - 1) { + } else if (m_ESPs[index].m_Priority == static_cast(m_ESPs.size()) - 1) { return tr("max"); } else { return QString::number(m_ESPs[index].m_Priority); -- cgit v1.3.1