Skip to content

Commit

Permalink
WindowSystem: much simpler and more correct checking if window stack …
Browse files Browse the repository at this point in the history
…has an active windows
  • Loading branch information
a1batross committed May 17, 2023
1 parent a91b17e commit 666707c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WindowSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CWindowStack

CMenuBaseWindow *Current() const { return stack.IsValidIndex( active ) ? stack[active] : NULL; }

bool IsActive( void ) { return !stack.IsEmpty(); }
bool IsActive( void ) { return stack.Count() > 0; }
int Count( void ) { return stack.Count(); }
void Clean( void )
{
Expand Down

0 comments on commit 666707c

Please sign in to comment.