Skip to content

Commit 8ee0f47

Browse files
committed
Fix setting managed button procs
1 parent 9c6daa4 commit 8ee0f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/window.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ bool _windowAddButtonGfx(const char* buttonName, char* pressedFileName, char* no
17251725
// 0x4BA11C
17261726
bool _windowAddButtonProc(const char* buttonName, Program* program, int mouseEnterProc, int mouseExitProc, int mouseDownProc, int mouseUpProc)
17271727
{
1728-
if (gCurrentManagedWindowIndex != -1) {
1728+
if (gCurrentManagedWindowIndex == -1) {
17291729
return false;
17301730
}
17311731

0 commit comments

Comments
 (0)