Fix wrong output from dump_map_stats console command
This commit is contained in:
@@ -486,6 +486,10 @@ void DumpMapStats(char *b, const char *last)
|
|||||||
};
|
};
|
||||||
btree::btree_map<uint, uint> tunnel_bridge_stats;
|
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++) {
|
for (TileIndex t = 0; t < MapSize(); t++) {
|
||||||
tile_types[GetTileType(t)]++;
|
tile_types[GetTileType(t)]++;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user