13
0

prefer bool operator

This commit is contained in:
Robin Gareus 2016-11-30 12:15:35 +01:00
parent 02ded90618
commit 24c799cde3

View File

@ -108,7 +108,7 @@ StatefulImage::load_states (const XMLNode& node)
continue;
}
if ((s.image = find_image (prop->value())) == 0) {
if (!(s.image = find_image (prop->value()))) {
error << string_compose (_("image %1 not found for state"), prop->value()) << endmsg;
continue;
}