Fix potential MSVC warning

svn-id: r29292
This commit is contained in:
Eugene Sandulenko 2007-10-28 16:10:05 +00:00
parent fc961908c5
commit 3b005ab88f

View file

@ -137,7 +137,7 @@ bool Widget::isEnabled() const {
if (g_gui.evaluator()->getVar(_name + ".enabled") == 0) {
return false;
}
return _flags & WIDGET_ENABLED;
return ((_flags & WIDGET_ENABLED) != 0);
}
bool Widget::isVisible() const {