aboutsummaryrefslogtreecommitdiff
path: root/src/mods.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mods.h')
-rw-r--r--src/mods.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mods.h b/src/mods.h
index 792280b8b..1a5c32692 100644
--- a/src/mods.h
+++ b/src/mods.h
@@ -42,19 +42,13 @@ struct ModSpec
std::unordered_set<std::string> optdepends;
std::unordered_set<std::string> unsatisfied_depends;
- bool part_of_modpack;
- bool is_modpack;
+ bool part_of_modpack = false;
+ bool is_modpack = false;
// if modpack:
std::map<std::string,ModSpec> modpack_content;
ModSpec(const std::string &name_="", const std::string &path_=""):
name(name_),
- path(path_),
- depends(),
- optdepends(),
- unsatisfied_depends(),
- part_of_modpack(false),
- is_modpack(false),
- modpack_content()
+ path(path_)
{}
};
@@ -235,7 +229,7 @@ public:
virtual bool setString(const std::string &name, const std::string &var);
private:
std::string m_mod_name;
- bool m_modified;
+ bool m_modified = false;
};
#endif