From 07950c6bd3b1ddaafda145d9460e38894ac76292 Mon Sep 17 00:00:00 2001 From: Coolthulhu Date: Wed, 1 Jul 2020 19:57:24 +0200 Subject: [PATCH] PERFORMANCE Cache get_vehicle return value --- src/map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map.cpp b/src/map.cpp index 2cdda8f9e292..030c61234e26 100755 --- a/src/map.cpp +++ b/src/map.cpp @@ -203,6 +203,8 @@ VehicleList map::get_vehicles() last_full_vehicle_list = get_vehicles( tripoint( 0, 0, -OVERMAP_DEPTH ), tripoint( SEEX * my_MAPSIZE, SEEY * my_MAPSIZE, OVERMAP_HEIGHT ) ); } + + last_full_vehicle_list_dirty = false; } return last_full_vehicle_list;