From 271eeca11b26df2d1c15e1402aed086c53d3b9aa Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Wed, 17 Jan 2024 14:36:51 +0000 Subject: [PATCH] Fix BattleEvaluator.cpp:286:32: error: function 'battleGetAllObstacles' with deduced return type cannot be used before it is defined --- lib/battle/CBattleInfoEssentials.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/battle/CBattleInfoEssentials.h b/lib/battle/CBattleInfoEssentials.h index f9866da22..3af7c1b50 100644 --- a/lib/battle/CBattleInfoEssentials.h +++ b/lib/battle/CBattleInfoEssentials.h @@ -52,7 +52,7 @@ public: BattleField battleGetBattlefieldType() const override; int32_t battleGetEnchanterCounter(ui8 side) const; - auto battleGetAllObstacles(std::optional perspective = std::nullopt) const; //returns all obstacles on the battlefield + std::vector> battleGetAllObstacles(std::optional perspective = std::nullopt) const; //returns all obstacles on the battlefield std::shared_ptr battleGetObstacleByID(uint32_t ID) const;