apply update scripts in correct order

This commit is contained in:
GenevensiS
2026-05-14 19:00:50 +02:00
parent 76af996f0a
commit a335b730ca
3 changed files with 43 additions and 29 deletions
+4 -2
View File
@@ -207,8 +207,10 @@ void Game::validate(Version v) {
card_links_alt_names.emplace(linked_tr, linked_default);
}
}
// sort the update_cards_scripts from oldest to newest
std::sort(update_cards_scripts.begin(), update_cards_scripts.end());
// sort the update_cards_scripts from oldest to newest
std::sort(update_cards_scripts.begin(), update_cards_scripts.end(), [](const auto& a, const auto& b) {
return *a < *b;
});
}
void Game::initCardListColorScript() {