mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07:00
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.
This commit is contained in:
parent
57b9f0e54c
commit
4812508afc
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ protected:
|
||||||
QAction *aCardInfoDockVisible, *aCardInfoDockFloating, *aDeckDockVisible, *aDeckDockFloating;
|
QAction *aCardInfoDockVisible, *aCardInfoDockFloating, *aDeckDockVisible, *aDeckDockFloating;
|
||||||
QAction *aFilterDockVisible, *aFilterDockFloating, *aPrintingSelectorDockVisible, *aPrintingSelectorDockFloating;
|
QAction *aFilterDockVisible, *aFilterDockFloating, *aPrintingSelectorDockVisible, *aPrintingSelectorDockFloating;
|
||||||
|
|
||||||
bool modified;
|
bool modified = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TAB_GENERIC_DECK_EDITOR_H
|
#endif // TAB_GENERIC_DECK_EDITOR_H
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue