From 9bbe1d9d7a899c130045608e9e34b5228562279c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 25 Sep 2025 17:19:53 +0200 Subject: [PATCH] Fix compiler warning. Took 4 minutes --- cockatrice/src/database/card_database.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/database/card_database.cpp b/cockatrice/src/database/card_database.cpp index a5b6a918d..9ed89a11d 100644 --- a/cockatrice/src/database/card_database.cpp +++ b/cockatrice/src/database/card_database.cpp @@ -110,8 +110,9 @@ LoadStatus CardDatabase::loadCardDatabases() // find all custom card databases, recursively & following symlinks // then load them alphabetically - for (int i = 0, n = collectCustomDatabasePaths().size(); i < n; ++i) { - const auto &path = collectCustomDatabasePaths().at(i); + auto customPaths = collectCustomDatabasePaths(); + for (int i = 0, n = customPaths.size(); i < n; ++i) { + const auto &path = customPaths.at(i); qCInfo(CardDatabaseLoadingLog) << "Loading Custom Set" << i << "(" << path << ")"; loadCardDatabase(path); }