From 1322b0c4d11e600f2a6a0149ce2a1ea2bbb1e303 Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Sun, 6 Jun 2021 22:49:18 +0200 Subject: [PATCH] fixed open inventory crash (#5233) --- src/StatisticsManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/StatisticsManager.cpp b/src/StatisticsManager.cpp index 0b343cb76..75f23ab52 100644 --- a/src/StatisticsManager.cpp +++ b/src/StatisticsManager.cpp @@ -13,6 +13,7 @@ bool StatisticsManager::SatisfiesPrerequisite(const CustomStatistic a_Stat) cons { switch (a_Stat) { + case CustomStatistic::AchOpenInventory: return true; case CustomStatistic::AchMineWood: return IsStatisticPresent(CustomStatistic::AchOpenInventory); case CustomStatistic::AchBuildWorkBench: return IsStatisticPresent(CustomStatistic::AchMineWood); case CustomStatistic::AchBuildHoe: return IsStatisticPresent(CustomStatistic::AchBuildWorkBench);