changeset 15086:125340550a4f draft

(svn r19712) -Fix (r19708): if the parent was a town, the parent wasn't shown
author rubidium <rubidium@openttd.org>
date Sat, 24 Apr 2010 18:39:38 +0000
parents 2739f316cd5d
children cf6b5f0aae1d
files src/table/newgrf_debug_data.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/table/newgrf_debug_data.h
+++ b/src/table/newgrf_debug_data.h
@@ -384,7 +384,7 @@
 };
 
 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; }