Skip to content

Commit

Permalink
Only process area map filter on load if there is an instance of AreaM…
Browse files Browse the repository at this point in the history
…apUI
  • Loading branch information
timoschwarzer committed Aug 11, 2024
1 parent 4f5a63d commit 54e6fa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/Randomizer/game/map/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ namespace randomizer::game::map {
.after([] {
if (!inlogic_toggle.get<bool>() && active_filter() == Filters::InLogic) {
const auto area_map = types::AreaMapUI::get_class()->static_fields->Instance;
AreaMapUI::CycleFilter(area_map);
if (area_map != nullptr) {
AreaMapUI::CycleFilter(area_map);
}
}
})
.finalize();
Expand Down

0 comments on commit 54e6fa1

Please sign in to comment.