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:
parent
a7bb98a4c8
commit
0a131f873c
1 changed files with 1 additions and 3 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue