Skip to content

Commit

Permalink
improve: not remove duplicate items with action id or unique id (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Jun 21, 2024
1 parent cb53448 commit 65409b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/main_menubar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2473,6 +2473,10 @@ namespace RemoveDuplicatesItems {
return false;
}

if (item->getActionID() > 0 || item->getUniqueID() > 0) {
return false;
}

std::unordered_set<int> itemIDsDuplicates;
for (Item* itemInTile : tile->items) {
if (itemInTile && itemInTile->getID() == item->getID()) {
Expand Down

0 comments on commit 65409b6

Please sign in to comment.