From 5359c43ec10284c44dda4a196a5ce2f01038c992 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 21 Mar 2016 20:33:55 +0000 Subject: [PATCH] Add scope logging for Vehicle::PreDestructor. --- src/vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 99347d8620..05f97e0f5c 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -741,6 +741,8 @@ void Vehicle::PreDestructor() { if (CleaningPool()) return; + SCOPE_INFO_FMT([this], "Vehicle::PreDestructor: %s", scope_dumper().VehicleInfo(this)); + if (Station::IsValidID(this->last_station_visited)) { Station *st = Station::Get(this->last_station_visited); st->loading_vehicles.remove(this);