Skip to content

Commit

Permalink
PERFORMANCE Cache get_vehicle return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Coolthulhu committed Jul 1, 2020
1 parent 2a8bf36 commit 07950c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 07950c6

Please sign in to comment.