From 8ee0f478adf15efbc59574580684cae323b8b3c7 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Fri, 28 Oct 2022 11:02:53 +0300 Subject: [PATCH] Fix setting managed button procs --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 3357852..f9beff1 100644 --- a/src/window.cc +++ b/src/window.cc @@ -1725,7 +1725,7 @@ bool _windowAddButtonGfx(const char* buttonName, char* pressedFileName, char* no // 0x4BA11C bool _windowAddButtonProc(const char* buttonName, Program* program, int mouseEnterProc, int mouseExitProc, int mouseDownProc, int mouseUpProc) { - if (gCurrentManagedWindowIndex != -1) { + if (gCurrentManagedWindowIndex == -1) { return false; }