Skip to content

Commit

Permalink
Fixed warning C4800 in Visual Studio 2015
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Aug 12, 2019
1 parent f46ed66 commit 1322f37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/menu_style.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 1322f37

Please sign in to comment.