summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/logic/minecraft/mod/ModFolderModel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/logic/minecraft/mod/ModFolderModel.cpp b/api/logic/minecraft/mod/ModFolderModel.cpp
index 7293f837..79459dac 100644
--- a/api/logic/minecraft/mod/ModFolderModel.cpp
+++ b/api/logic/minecraft/mod/ModFolderModel.cpp
@@ -122,8 +122,8 @@ void ModFolderModel::updateFinished()
for(auto & removedMod: removed) {
removedRows.append(modsIndex[removedMod]);
}
- std::sort(removedRows.begin(), removedRows.end());
- for(auto iter = removedRows.rbegin(); iter != removedRows.rend(); iter++) {
+ std::sort(removedRows.begin(), removedRows.end(), std::greater<int>());
+ for(auto iter = removedRows.begin(); iter != removedRows.end(); iter++) {
int removedIndex = *iter;
beginRemoveRows(QModelIndex(), removedIndex, removedIndex);
auto removedIter = mods.begin() + removedIndex;