Skip to content

Commit

Permalink
cans spawn sealed (#41745)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT authored Jul 2, 2020
1 parent 12ea5d2 commit 7194cdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/item_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ void Item_modifier::modify( item &new_item ) const

if( !cont.is_null() ) {
cont.put_in( new_item, item_pocket::pocket_type::CONTAINER );
cont.seal();
new_item = cont;
}

Expand All @@ -386,6 +387,7 @@ void Item_modifier::modify( item &new_item ) const
for( const item &it : contentitems ) {
new_item.put_in( it, item_pocket::pocket_type::CONTAINER );
}
new_item.seal();
}

for( auto &flag : custom_flags ) {
Expand Down
2 changes: 1 addition & 1 deletion src/item_pocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ void item_pocket::on_pickup( Character &guy )

void item_pocket::on_contents_changed()
{
_sealed = false;
unseal();
restack();
}

Expand Down

0 comments on commit 7194cdc

Please sign in to comment.