From 0b3fc98ac0a3aaf8798fd14ddebd404914f34556 Mon Sep 17 00:00:00 2001 From: Pierre-David Belanger Date: Sat, 24 Aug 2019 19:12:11 -0400 Subject: [PATCH] invalidate mass when moving item from vehicle (fix #33512) --- src/item_location.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/item_location.cpp b/src/item_location.cpp index 064a67b96166d..df322fa67ba59 100644 --- a/src/item_location.cpp +++ b/src/item_location.cpp @@ -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(); } };