Skip to content

Commit

Permalink
Remove duplicate empty script labels in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Sep 19, 2023
1 parent 4f459f5 commit 31c5ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix the map border not updating when a tileset is changed.
- Improve the poor speed of the API functions `setMetatileTile` and `setMetatileTiles`.
- Stop the Tileset Editor from scrolling to the initially selected metatile when saving.
- Fix `0x0`/`NULL` appearing more than once in the scripts dropdown.
- Fix the selection outline sticking in single-tile mode on the Prefab tab.

## [5.1.1] - 2023-02-20
Expand Down
2 changes: 1 addition & 1 deletion src/core/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ QStringList Map::eventScriptLabels(Event::Group group) const {
}

scriptLabels.removeAll("");
scriptLabels.removeDuplicates();
scriptLabels.prepend("0x0");
scriptLabels.prepend("NULL");
scriptLabels.removeDuplicates();

return scriptLabels;
}
Expand Down

0 comments on commit 31c5ad6

Please sign in to comment.