From f0ac767970f1c2ed9f3ecd1aabb55516de3965c8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Jun 2022 20:57:03 +0200 Subject: [PATCH] Compare as boolean. --- modules/paint/paint_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/paint/paint_window.cpp b/modules/paint/paint_window.cpp index 3e2c9d676..37f593df4 100644 --- a/modules/paint/paint_window.cpp +++ b/modules/paint/paint_window.cpp @@ -112,7 +112,7 @@ void PaintWindow::_input(const Ref &event) { Ref iek = event; - if (iek.is_valid() && iek->is_pressed() & !iek->is_echo()) { + if (iek.is_valid() && iek->is_pressed() && !iek->is_echo()) { _handle_shortcuts(iek->get_scancode()); return; }