ResearchTree: add a missing early return.

This commit is contained in:
Guillaume Jacquemin 2021-08-03 20:38:19 +02:00
parent 4baca47f72
commit be4d1029c5

View file

@ -381,6 +381,7 @@ void ResearchTree::generateArchTree() {
void ResearchTree::readEngineUnlocks(Containers::ArrayView<Int> engines, Containers::ArrayView<Int> gears) { void ResearchTree::readEngineUnlocks(Containers::ArrayView<Int> engines, Containers::ArrayView<Int> gears) {
if(engines == nullptr || engines.size() == 0) { if(engines == nullptr || engines.size() == 0) {
Utility::Error{} << "Engines can't be empty"; Utility::Error{} << "Engines can't be empty";
return;
} }
for(Int& engine : engines) { for(Int& engine : engines) {