Skip to content

Commit

Permalink
WindowSystem: fix weird expression
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed May 25, 2019
1 parent 7984589 commit 23b673c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WindowSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool CWindowStack::IsVisible( const CMenuBaseWindow *menu ) const
return false;

// for some reason const_cast need here
if( !stack.Find( const_cast<CMenuBaseWindow*>( menu )) != stack.InvalidIndex())
if( stack.Find( const_cast<CMenuBaseWindow*>( menu )) == stack.InvalidIndex())
return false;

return true;
Expand Down

0 comments on commit 23b673c

Please sign in to comment.