Skip to content

Commit

Permalink
fix: Unseal modified containers (#3631)
Browse files Browse the repository at this point in the history
* Unseal modified containers

* style(autofix.ci): automated formatting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
joveeater and autofix-ci[bot] authored Nov 11, 2023
1 parent 3582855 commit 47ee09b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/locations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,16 @@ std::string vehicle_base_item_location::describe( const Character *, const item

detached_ptr<item> contents_item_location::detach( item *it )
{
return container->contents.remove_top( it );

detached_ptr<item> ret = container->contents.remove_top( it );
container->on_contents_changed();
return ret;
}

void contents_item_location::attach( detached_ptr<item> &&obj )
{
container->contents.insert_item( std::move( obj ) );
container->on_contents_changed();
}

bool contents_item_location::is_loaded( const item * ) const
Expand Down

0 comments on commit 47ee09b

Please sign in to comment.