summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-08 22:35:09 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-09 17:14:25 +0100
commit1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7 (patch)
tree74cff7036d1ecfb4df5a79a7ca68bedce5bea47e /src/gui/npcdialog.h
parent0ca05c54dd814f294617eda286ef175f01baa542 (diff)
downloadMana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.gz
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.bz2
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.tar.xz
Mana-1b041ecccfbe44a4f50ffc086e3996e2b6eea4f7.zip
C++11: Use default member initializers
This patch is not exhaustive.
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r--src/gui/npcdialog.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h
index 49ec5f8a..fc0325a4 100644
--- a/src/gui/npcdialog.h
+++ b/src/gui/npcdialog.h
@@ -177,7 +177,7 @@ class NpcDialog : public Window,
int mNpcId;
bool mLogInteraction;
- int mDefaultInt;
+ int mDefaultInt = 0;
std::string mDefaultString;
// Used for the main input area
@@ -221,8 +221,8 @@ class NpcDialog : public Window,
NPC_ACTION_CLOSE
};
- NpcInputState mInputState;
- NpcActionState mActionState;
+ NpcInputState mInputState = NPC_INPUT_NONE;
+ NpcActionState mActionState = NPC_ACTION_WAIT;
};
#endif // NPCDIALOG_H