Skip to content

Commit

Permalink
Load container only when location is of that kind (#75289)
Browse files Browse the repository at this point in the history
* Load container only when location is of that kind

* Update src/advanced_inv_pane.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/advanced_inv_pane.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
alef and github-actions[bot] authored Jul 28, 2024
1 parent 14844ab commit a334d3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/advanced_inv_pane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ void advanced_inventory_pane::load_settings( int saved_area_idx,
sortby = static_cast<advanced_inv_sortby>( save_state->sort_idx );
index = save_state->selected_idx;
filter = save_state->filter;
container = save_state->container;
if( area == AIM_CONTAINER ) {
container = save_state->container;
}
container_base_loc = static_cast<aim_location>( save_state->container_base_loc );
}

Expand Down

0 comments on commit a334d3d

Please sign in to comment.