A simple default "any card" pack if there are no packs specified in the game file

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1480 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-08-04 15:07:07 +00:00
parent 57e0391f0d
commit d546904163
+10
View File
@@ -90,6 +90,16 @@ void Game::validate(Version v) {
}
statistics_categories.insert(statistics_categories.begin(), cats.begin(), cats.end()); // push front
}
// automatic pack if there are none
if (pack_types.empty()) {
PackTypeP pack(new PackType);
pack->name = _("Any card");
pack->enabled = true;
pack->selectable = true;
pack->summary = true;
pack->filter = OptionalScript(_("true"));
pack_types.push_back(pack);
}
}
void Game::initCardListColorScript() {