Remove a useless cast.

This commit is contained in:
Mark de Wever 2013-06-01 10:46:41 +02:00
parent 9cfbc3e71d
commit 4b059500c9

View File

@ -83,7 +83,7 @@ void unit_palette::draw_item(const unit_type& u, surface& image, std::stringstre
filename << u.image() << "~RC(" << u.flag_rgb() << '>'
<< team::get_side_color_index(gui_.viewing_side()) << ')';
image = surface(image::get_image(filename.str()));
image = image::get_image(filename.str());
if(image == NULL) {
tooltip_text << "IMAGE NOT FOUND\n";
ERR_ED << "image for unit type: '" << filename.str() << "' not found\n";