From be4d1029c56a3613db693db010e897e6eed879e4 Mon Sep 17 00:00:00 2001 From: William JCM Date: Tue, 3 Aug 2021 20:38:19 +0200 Subject: [PATCH] ResearchTree: add a missing early return. --- src/ResearchTree/ResearchTree.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ResearchTree/ResearchTree.cpp b/src/ResearchTree/ResearchTree.cpp index b6ddb3e..d5b2f64 100644 --- a/src/ResearchTree/ResearchTree.cpp +++ b/src/ResearchTree/ResearchTree.cpp @@ -381,6 +381,7 @@ void ResearchTree::generateArchTree() { void ResearchTree::readEngineUnlocks(Containers::ArrayView engines, Containers::ArrayView gears) { if(engines == nullptr || engines.size() == 0) { Utility::Error{} << "Engines can't be empty"; + return; } for(Int& engine : engines) {