mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:05:19 +00:00
Silince gcc 4.3 warnings by adding parens around && clauses near ||.
This commit is contained in:
parent
31af370321
commit
58d8aa593a
@ -189,7 +189,7 @@ bool widget::enabled() const
|
||||
|
||||
void widget::set_dirty(bool dirty)
|
||||
{
|
||||
if (dirty && (volatile_ || hidden_override_ || state_ != DRAWN) || !dirty && state_ != DIRTY)
|
||||
if ((dirty && (volatile_ || hidden_override_ || state_ != DRAWN)) || (!dirty && state_ != DIRTY))
|
||||
return;
|
||||
|
||||
state_ = dirty ? DIRTY : DRAWN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user