fix itemfinder checkbox initialization bug

This commit is contained in:
garakmon 2023-01-10 15:50:30 -05:00
parent 160a9c0713
commit f27c4e9ab4
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
- Fix scripting API callback `onMapResized` not triggering. - Fix scripting API callback `onMapResized` not triggering.
- Fix crash when importing AdvanceMap metatiles while `enable_triple_layer_metatiles` is enabled. - Fix crash when importing AdvanceMap metatiles while `enable_triple_layer_metatiles` is enabled.
- Fix `File -> Open Project` not resolving folder shortcuts. - Fix `File -> Open Project` not resolving folder shortcuts.
- Fix bug where "Requires Itemfinder" checkbox is being checked by wrong data.
## [5.0.0] - 2022-10-30 ## [5.0.0] - 2022-10-30
### Breaking Changes ### Breaking Changes

View file

@ -872,7 +872,7 @@ void HiddenItemFrame::initialize() {
// underfoot // underfoot
if (projectConfig.getHiddenItemRequiresItemfinderEnabled()) { if (projectConfig.getHiddenItemRequiresItemfinderEnabled()) {
this->check_itemfinder->setChecked(this->hiddenItem->getQuantity()); this->check_itemfinder->setChecked(this->hiddenItem->getUnderfoot());
} }
this->hideable_itemfinder->setVisible(projectConfig.getHiddenItemRequiresItemfinderEnabled()); this->hideable_itemfinder->setVisible(projectConfig.getHiddenItemRequiresItemfinderEnabled());
} }