From 138a7c2d9055042eaf59f8b0c361ff66338829ca Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 20 Aug 2020 17:45:50 +0100 Subject: [PATCH] Fix wrong output from dump_map_stats console command --- src/map.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map.cpp b/src/map.cpp index f240a4d32b..6561daa30a 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -486,6 +486,10 @@ void DumpMapStats(char *b, const char *last) }; btree::btree_map 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)]++;