From b16f721b3949e12584c0486e20501ca680cad409 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 10 Aug 2024 13:57:13 +0200 Subject: [PATCH] respect headeronly --- lib/campaign/CampaignHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/campaign/CampaignHandler.cpp b/lib/campaign/CampaignHandler.cpp index b7c592e45..b01accb3c 100644 --- a/lib/campaign/CampaignHandler.cpp +++ b/lib/campaign/CampaignHandler.cpp @@ -608,6 +608,9 @@ std::vector< std::vector > CampaignHandler::getFile(std::unique_ptrreadAll(); ret.push_back(std::vector(data.first.get(), data.first.get() + data.second)); + if(headerOnly) + return ret; + // load scenarios JsonNode header(reinterpret_cast(data.first.get()), data.second, VCMP_HEADER_FILE_NAME); for(auto scenario : header["scenarios"].Vector())