summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 18:39:38 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 18:39:38 +0000
commit03c6f51c844c8d901f658a2712ebe2dcfdcd65d3 (patch)
tree6163f284831ae4163abad58afb6e30526dacb036 /src/table
parent46a0fa6eda86667765f6dbe9cc8267c31558baa9 (diff)
downloadopenttd-03c6f51c844c8d901f658a2712ebe2dcfdcd65d3.tar.xz
(svn r19712) -Fix (r19708): if the parent was a town, the parent wasn't shown
Diffstat (limited to 'src/table')
-rw-r--r--src/table/newgrf_debug_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h
index 99ba72337..0370f7ac0 100644
--- a/src/table/newgrf_debug_data.h
+++ b/src/table/newgrf_debug_data.h
@@ -384,7 +384,7 @@ static const NIVariable _niv_towns[] = {
};
class NIHTown : public NIHelper {
- bool IsInspectable(uint index) const { return false; }
+ bool IsInspectable(uint index) const { return Town::IsValidID(index); }
uint GetParent(uint index) const { return UINT32_MAX; }
const void *GetInstance(uint index)const { return Town::Get(index); }
const void *GetSpec(uint index) const { return NULL; }