Account for the "All" category too...

...when determining the category with the greatest amount of terrains
(minor oversight in 2011-12-26T22:02:19Z!shadowm@wesnoth.org)
This commit is contained in:
Ignacio R. Morelle 2011-12-26 22:31:44 +00:00
parent 1e3ae570f1
commit ea97606a4c

View file

@ -134,6 +134,7 @@ terrain_palette::terrain_palette(display &gui, const size_specs &sizes,
if (core) {
// Add the terrain to the default group
terrain_map_["all"].push_back(t);
nmax_terrains_ = std::max(nmax_terrains_, terrain_map_["all"].size());
} else {
non_core_terrains_.insert(t);
}