Add scope info logging to LoadUnloadStation

This commit is contained in:
Jonathan G Rennison
2018-05-31 18:37:08 +01:00
parent faf4cdc0f4
commit bb8c18b017
2 changed files with 8 additions and 3 deletions

View File

@@ -951,8 +951,11 @@ void CallVehicleTicks()
RunVehicleDayProc();
Station *st;
FOR_ALL_STATIONS(st) LoadUnloadStation(st);
{
Station *st = nullptr;
SCOPE_INFO_FMT([&st], "CallVehicleTicks: LoadUnloadStation: %s", scope_dumper().StationInfo(st));
FOR_ALL_STATIONS(st) LoadUnloadStation(st);
}
Vehicle *v = NULL;
SCOPE_INFO_FMT([&v], "CallVehicleTicks: %s", scope_dumper().VehicleInfo(v));