From 03c6f51c844c8d901f658a2712ebe2dcfdcd65d3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 24 Apr 2010 18:39:38 +0000 Subject: (svn r19712) -Fix (r19708): if the parent was a town, the parent wasn't shown --- src/table/newgrf_debug_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2