Fix wrong output from dump_map_stats console command

This commit is contained in:
Jonathan G Rennison
2020-08-20 17:45:50 +01:00
parent 2b9c633d50
commit 138a7c2d90

View File

@@ -486,6 +486,10 @@ void DumpMapStats(char *b, const char *last)
};
btree::btree_map<uint, uint> tunnel_bridge_stats;
for (uint type = 0; type < 16; type++) {
tile_types[type] = 0;
}
for (TileIndex t = 0; t < MapSize(); t++) {
tile_types[GetTileType(t)]++;