Add scope logging for Vehicle::PreDestructor.

This commit is contained in:
Jonathan G Rennison
2016-03-21 20:33:55 +00:00
parent 6ed6eeb478
commit 5359c43ec1

View File

@@ -741,6 +741,8 @@ void Vehicle::PreDestructor()
{ {
if (CleaningPool()) return; if (CleaningPool()) return;
SCOPE_INFO_FMT([this], "Vehicle::PreDestructor: %s", scope_dumper().VehicleInfo(this));
if (Station::IsValidID(this->last_station_visited)) { if (Station::IsValidID(this->last_station_visited)) {
Station *st = Station::Get(this->last_station_visited); Station *st = Station::Get(this->last_station_visited);
st->loading_vehicles.remove(this); st->loading_vehicles.remove(this);