Remove a useless cast.

Detected by the upcoming gcc-4.8.
This commit is contained in:
Mark de Wever 2012-07-28 16:34:42 +00:00
parent cac44040b3
commit 16dbfff895

View File

@ -413,7 +413,7 @@ void save_preview_pane::draw_contents()
map_surf = image::getMinimap(minimap_size, minimap_size, *map_);
if(map_surf != NULL) {
map_cache_.insert(std::pair<std::string,surface>(map_data,surface(map_surf)));
map_cache_.insert(std::pair<std::string,surface>(map_data, map_surf));
}
} catch(incorrect_map_format_error& e) {
ERR_CF << "map could not be loaded: " << e.message << '\n';