mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 08:59:09 +00:00
(svn r19712) -Fix (r19708): if the parent was a town, the parent wasn't shown
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user