Skip to content

Commit

Permalink
invalidate mass when moving item from vehicle (fix CleverRaven#33512)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredavidbelanger authored and misterprimus committed Sep 21, 2019
1 parent 0979dd1 commit 86a2fa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/item_location.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ class item_location::impl::item_on_vehicle : public item_location::impl
} else {
cur.remove_item( *target() ); // item within CARGO
}
cur.veh.invalidate_mass();
}
};

Expand Down

0 comments on commit 86a2fa7

Please sign in to comment.