Fixed the editor

This commit is contained in:
Benoît Timbert 2006-01-29 01:01:48 +00:00
parent b42308c570
commit 3d33e2c042

View file

@ -157,7 +157,7 @@ void terrain_palette::update_selected_terrains(void) {
std::string terrain_palette::get_terrain_string(const gamemap::TERRAIN t) {
std::stringstream str;
const std::string& name = map_.get_terrain_info(t).name();
const std::string& underlying = map_.underlying_terrain(t);
const std::string& underlying = map_.underlying_union_terrain(t);
str << name;
if(underlying.size() != 1 || underlying[0] != t) {
str << " (";