Skip to content

Commit 666707c

Browse files
committed
WindowSystem: much simpler and more correct checking if window stack has an active windows
1 parent a91b17e commit 666707c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WindowSystem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CWindowStack
3232

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

35-
bool IsActive( void ) { return !stack.IsEmpty(); }
35+
bool IsActive( void ) { return stack.Count() > 0; }
3636
int Count( void ) { return stack.Count(); }
3737
void Clean( void )
3838
{

0 commit comments

Comments
 (0)