Skip to content

Commit

Permalink
FIx bag editor item list
Browse files Browse the repository at this point in the history
  • Loading branch information
FM1337 committed Apr 4, 2024
1 parent dd9b561 commit aca2266
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion 3ds/source/gui/screen/BagScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,13 @@ void BagScreen::updateFirstEmpty()
std::span<const int> BagScreen::itemsForPouch(pksm::Sav::Pouch pouch) const
{
const auto found = std::find_if(allowedItems.begin(), allowedItems.end(),
[s = limits[0].first](const auto& i) { return i.first == s; });
[s = pouch](const auto& i) { return i.first == s; });

if (found->second.size() > 1000 || found->second.size() == 0) {
// Should a match fail to be found, we don't want the app freaking out, so return an empty array.
std::array<int, 0UL> catchArr = {};
return std::span{catchArr};
}

return found->second;
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export PKSM_AUTHOR := FlagBrew

export VERSION_MAJOR := 10
export VERSION_MINOR := 1
export VERSION_MICRO := 0
export VERSION_MICRO := 1
GIT_REV := $(shell git rev-parse --short HEAD)
OLD_INFO := $(shell if [ -e appinfo.hash ]; then cat appinfo.hash; fi)
NOW_INFO := $(PKSM_TITLE) $(PKSM_DESCRIPTION) $(PKSM_AUTHOR) $(VERSION_MAJOR) $(VERSION_MINOR) $(VERSION_MICRO) $(GIT_REV)
Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 1 files
+2 −3 source/sav/SavUSUM.cpp

1 comment on commit aca2266

@Vivacius502
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me da error al iniciar... me podrían ayudar

Please sign in to comment.