From 579b64cd39504e6c952dd9a77421174b43530f5c Mon Sep 17 00:00:00 2001
From: Ivan Savenko <saven.ivan@gmail.com>
Date: Thu, 26 Dec 2024 16:58:04 +0000
Subject: [PATCH] Fix build

---
 lib/bonuses/BonusCache.cpp | 4 ++++
 lib/bonuses/BonusCache.h   | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/lib/bonuses/BonusCache.cpp b/lib/bonuses/BonusCache.cpp
index 5e037ee3c..3eac0290c 100644
--- a/lib/bonuses/BonusCache.cpp
+++ b/lib/bonuses/BonusCache.cpp
@@ -18,6 +18,8 @@
 #include "../VCMI_Lib.h"
 #include "../IGameSettings.h"
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 int BonusCacheBase::getBonusValueImpl(BonusCacheEntry & currentValue, const CSelector & selector, BonusCacheMode mode) const
 {
 	if (target->getTreeVersion() == currentValue.version)
@@ -174,3 +176,5 @@ int BonusCachePerTurn::getValue(int turns) const
 		return getValueUncached(turns);
 	}
 }
+
+VCMI_LIB_NAMESPACE_END
diff --git a/lib/bonuses/BonusCache.h b/lib/bonuses/BonusCache.h
index b3209e880..fbc59f571 100644
--- a/lib/bonuses/BonusCache.h
+++ b/lib/bonuses/BonusCache.h
@@ -12,6 +12,8 @@
 
 #include "BonusSelector.h"
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 enum class BonusCacheMode : int8_t
 {
 	VALUE, // total value of bonus will be cached
@@ -180,3 +182,5 @@ public:
 
 	int getValue(int turns) const;
 };
+
+VCMI_LIB_NAMESPACE_END