Fix bug: No need to say it twice

If the exception will be caught and handled, we don't need to say it at all. That's up to the exception handler.
This commit is contained in:
Gregory A Lundberg 2016-08-31 18:18:49 -05:00
parent a7bb98a4c8
commit 0a131f873c

View file

@ -198,9 +198,7 @@ void gamemap::read(const std::string& data, const bool allow_invalid, int border
if(!tdata_->try_merge_terrains(tiles_[x][y])) {
std::stringstream ss;
ss << "Illegal tile in map: (" << t_translation::write_terrain_code(tiles_[x][y])
<< ") '" << tiles_[x][y] << "'\n";
ERR_CF << ss.str();
ss << "The map cannot be loaded.";
<< ") '" << tiles_[x][y] << "'";
throw incorrect_map_format_error(ss.str().c_str());
}
}