From cdd7e74e7f0ee54933372300f0a505991a29db0b Mon Sep 17 00:00:00 2001 From: GriffinR Date: Thu, 3 Apr 2025 14:51:49 -0400 Subject: [PATCH] Fix bug with Hidden Item duplication --- CHANGELOG.md | 1 + src/core/events.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b992da85..c8777a50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/src/core/events.cpp b/src/core/events.cpp index f9828dc1..afa96d3c 100644 --- a/src/core/events.cpp +++ b/src/core/events.cpp @@ -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());