From 627d68291095fd65459185817cef31f25dc34017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Basile=20Cl=C3=A9ment?= Date: Mon, 17 Mar 2025 19:11:55 +0100 Subject: [PATCH] DeckEditor: Initialize the `modified` flag C++ does not require compilers to zero-initialize value types, so depending on the platform (here: Linux), the deck editor starts up with an uninitialized value in the `modified` flag, which is usually not zero. --- cockatrice/src/client/tabs/abstract_tab_deck_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/client/tabs/abstract_tab_deck_editor.h b/cockatrice/src/client/tabs/abstract_tab_deck_editor.h index 47e6fc78c..9f3cca0e1 100644 --- a/cockatrice/src/client/tabs/abstract_tab_deck_editor.h +++ b/cockatrice/src/client/tabs/abstract_tab_deck_editor.h @@ -147,7 +147,7 @@ protected: QAction *aCardInfoDockVisible, *aCardInfoDockFloating, *aDeckDockVisible, *aDeckDockFloating; QAction *aFilterDockVisible, *aFilterDockFloating, *aPrintingSelectorDockVisible, *aPrintingSelectorDockFloating; - bool modified; + bool modified = false; }; #endif // TAB_GENERIC_DECK_EDITOR_H