diff --git a/src/table/newgrf_debug_data.h b/src/table/newgrf_debug_data.h index 786088d441..05d11d3dfe 100644 --- a/src/table/newgrf_debug_data.h +++ b/src/table/newgrf_debug_data.h @@ -515,6 +515,7 @@ static const NIVariable _niv_house[] = { class NIHHouse : public NIHelper { bool IsInspectable(uint index) const override { return true; } bool ShowExtraInfoOnly(uint index) const override { return HouseSpec::Get(GetHouseType(index))->grf_prop.grffile == nullptr; } + bool ShowSpriteDumpButton(uint index) const override { return true; } uint GetParent(uint index) const override { return GetInspectWindowNumber(GSF_FAKE_TOWNS, GetTownIndex(index)); } const void *GetInstance(uint index)const override { return nullptr; } const void *GetSpec(uint index) const override { return HouseSpec::Get(GetHouseType(index)); } @@ -553,6 +554,11 @@ class NIHHouse : public NIHelper { output.print(buffer); } } + + /* virtual */ void SpriteDump(uint index, std::function print) const override + { + DumpSpriteGroup(HouseSpec::Get(GetHouseType(index))->grf_prop.spritegroup[0], std::move(print)); + } }; static const NIFeature _nif_house = {