Skip to content

Commit

Permalink
Move kill_advanced_inv body into last call site
Browse files Browse the repository at this point in the history
Fixes `-Werror=missing-declarations`
  • Loading branch information
alef committed Oct 1, 2024
1 parent abf1c51 commit 6c280b2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/advanced_inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ namespace
std::unique_ptr<advanced_inventory> advinv;
} // namespace

void kill_advanced_inv()
{
advinv.reset();
cancel_aim_processing();
}

void create_advanced_inv()
{
if( !advinv ) {
Expand All @@ -131,7 +125,8 @@ void create_advanced_inv()
advinv->display();
// keep the UI and its ui_adaptor running if we're returning
if( uistate.transfer_save.exit_code != aim_exit::re_entry || get_avatar().activity.is_null() ) {
kill_advanced_inv();
advinv.reset();
cancel_aim_processing();
}
}

Expand Down

0 comments on commit 6c280b2

Please sign in to comment.