diff --git a/src/data/set.cpp b/src/data/set.cpp index 576e007d..c7964a7c 100644 --- a/src/data/set.cpp +++ b/src/data/set.cpp @@ -202,11 +202,11 @@ void Set::validate(Version file_app_version) { */ // we want at least one card - if (cards.empty()) cards.push_back(make_intrusive(*game)); + if (cards.empty()) cards.push_back(make_intrusive(*game)); + // build uid map + buildUIDMap(); // update scripts script_manager->updateAll(); - // build uid map - buildUIDMap(); // update_cards_scripts // first apply all the stylesheet scripts that are older than the first game script // then apply the first game script