From 6b61c4608fab00c7bfc78c296b3c85f611681f59 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Mar 2014 20:02:31 +0000 Subject: (svn r26388) -Codechange: Move resolving of Action 3 into ResolverObject constructor. --- src/table/newgrf_debug_data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/table') diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index b4756882f..4814ae50c 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -79,7 +79,7 @@ class NIHVehicle : public NIHelper { /* virtual */ uint Resolve(uint index, uint var, uint param, bool *avail) const { Vehicle *v = Vehicle::Get(index); - VehicleResolverObject ro(v->engine_type, v); + VehicleResolverObject ro(v->engine_type, v, VehicleResolverObject::WO_CACHED); return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail); } }; @@ -429,7 +429,7 @@ class NIHRailType : public NIHelper { { /* There is no unique GRFFile for the tile. Multiple GRFs can define different parts of the railtype. * However, currently the NewGRF Debug GUI does not display variables depending on the GRF (like 0x7F) anyway. */ - RailTypeResolverObject ro(index, TCX_NORMAL, NULL); + RailTypeResolverObject ro(NULL, index, TCX_NORMAL, RTSG_END); return ro.GetScope(VSG_SCOPE_SELF)->GetVariable(var, param, avail); } }; -- cgit v1.2.3-70-g09d2