summaryrefslogtreecommitdiff
path: root/src/newgrf_debug_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2012-11-10 20:37:31 +0000
committeralberth <alberth@openttd.org>2012-11-10 20:37:31 +0000
commit438495b433f5b4d3ce81f8efc7d655d2337582fe (patch)
treee4a239bd21a6ef692d9155d469058a1526c686d3 /src/newgrf_debug_gui.cpp
parentfa3d470a051f5e5eae6db45635280fc33280f7f3 (diff)
downloadopenttd-438495b433f5b4d3ce81f8efc7d655d2337582fe.tar.xz
(svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes.
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r--src/newgrf_debug_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index 154767194..dbc9247f5 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -162,7 +162,7 @@ public:
ResolverObject ro;
memset(&ro, 0, sizeof(ro));
this->Resolve(&ro, index);
- return ro.GetVariable(&ro, var, param, avail);
+ return ro.GetScope(ro.scope)->GetVariable(var, param, avail);
}
/**