From 4812508afce1dc20c5a893b13e0c9ee197c69e3d Mon Sep 17 00:00:00 2001 From: Basile Clement Date: Tue, 18 Mar 2025 02:43:14 +0100 Subject: [PATCH] DeckEditor: Initialize the `modified` flag (#5743) 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