Skip to content

Commit

Permalink
NOISSUE fix build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Aug 4, 2019
1 parent a3ffa3d commit 6b82e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/logic/minecraft/mod/ModFolderModel.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 6b82e94

Please sign in to comment.