Fix bug with Hidden Item duplication

This commit is contained in:
GriffinR
2025-04-03 14:51:49 -04:00
parent 245c9d7936
commit cdd7e74e7f
2 changed files with 2 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix unsaved changes being ignored when quitting (such as with Cmd+Q on macOS).
- Fix selections with multiple Events not always clearing when making a new selection.
- Fix the new event button not updating correctly when selecting object events.
- Fix duplicated `Hidden Item` events not copying the `Requires Itemfinder` field.
- Fix `About porymap` opening a new window each time it's activated.
- Fix the `Edit History` window not raising to the front when reactivated.
- New maps are now always inserted in map dropdowns at the correct position, rather than at the bottom of the list until the project is reloaded.

View File

@@ -654,7 +654,7 @@ Event *HiddenItemEvent::duplicate() const {
copy->setItem(this->getItem());
copy->setFlag(this->getFlag());
copy->setQuantity(this->getQuantity());
copy->setQuantity(this->getQuantity());
copy->setUnderfoot(this->getUnderfoot());
copy->setCustomAttributes(this->getCustomAttributes());