Fixed warning C4800 in Visual Studio 2015

This commit is contained in:
Jyrki Vesterinen 2019-08-12 05:08:50 +03:00
parent f46ed66f2c
commit 1322f376c7

View file

@ -88,7 +88,7 @@ bool menu::imgsel_style::load_image(const std::string &img_sub)
std::string path = img_base_ + "-" + img_sub + ".png";
const surface image = image::get_image(path);
img_map_[img_sub] = image;
return(image);
return image.get() != nullptr;
}
bool menu::imgsel_style::load_images()