Skip to content

Commit

Permalink
Merge pull request #45298 from RoyBerube/AIM_liquid_dupe
Browse files Browse the repository at this point in the history
AIM liquid transfer fix
  • Loading branch information
ZhilkinSerg authored Nov 8, 2020
2 parents 2b10a30 + a2aad50 commit 09e00a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/advanced_inv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,10 @@ bool advanced_inventory::move_content( item &src_container, item &dest_container
return false;
}
dest_container.fill_with( src_contents, amount );
src_contents.charges -= amount;
src_container.contained_where( src_contents )->on_contents_changed();
src_container.on_contents_changed();
get_avatar().flag_encumbrance();

uistate.adv_inv_container_content_type = dest_container.contents.legacy_front().typeId();
if( src_contents.charges <= 0 ) {
Expand Down

0 comments on commit 09e00a8

Please sign in to comment.