Skip to content

Commit

Permalink
Call rebuild_vehicle_level_caches in grabbed_veh_move (#60911)
Browse files Browse the repository at this point in the history
  • Loading branch information
irwiss authored Sep 12, 2022
1 parent 64b1a9f commit 17a0b22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/grab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ bool game::grabbed_veh_move( const tripoint &dp )
u.grab_point = next_grab;

m.displace_vehicle( *grabbed_vehicle, final_dp_veh );
m.rebuild_vehicle_level_caches();

if( grabbed_vehicle ) {
m.level_vehicle( *grabbed_vehicle );
Expand Down

0 comments on commit 17a0b22

Please sign in to comment.