Skip to content

Commit

Permalink
Fix item action menu pseudos crash. (CleverRaven#49976)
Browse files Browse the repository at this point in the history
  • Loading branch information
linewriter1024 authored Jul 16, 2021
1 parent 1e13ea9 commit 43d9266
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ void game::item_action_menu()
const action_map &item_actions = gen.get_item_action_map();

std::vector<item> pseudo_items = get_player_character().get_pseudo_items();
std::vector<item *> pseudos( pseudo_items.size() );
std::vector<item *> pseudos;
pseudos.reserve( pseudo_items.size() );
for( item &pseudo : pseudo_items ) {
pseudos.push_back( &pseudo );
}
Expand Down

0 comments on commit 43d9266

Please sign in to comment.