From 666707c66c0bc95e17aed3d1caa0f5c9cdae09eb Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 17 May 2023 05:04:50 +0300 Subject: [PATCH] WindowSystem: much simpler and more correct checking if window stack has an active windows --- WindowSystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WindowSystem.h b/WindowSystem.h index d69dea4d..da308999 100644 --- a/WindowSystem.h +++ b/WindowSystem.h @@ -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 ) {