Browse Source

try to fix build, use inline constexpr

godric3 1 year ago
parent
commit
394812c02a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/CGHeroInstance.h

+ 1 - 1
lib/mapObjects/CGHeroInstance.h

@@ -92,7 +92,7 @@ public:
 	static constexpr si32 UNINITIALIZED_MANA = -1;
 	static constexpr ui32 UNINITIALIZED_MOVEMENT = -1;
 	static constexpr auto UNINITIALIZED_EXPERIENCE = std::numeric_limits<TExpType>::max();
-	static constexpr int NO_PATROLLING = -1;
+	static inline constexpr int NO_PATROLLING = -1;
 
 	//std::vector<const CArtifact*> artifacts; //hero's artifacts from bag
 	//std::map<ui16, const CArtifact*> artifWorn; //map<position,artifact_id>; positions: 0 - head; 1 - shoulders; 2 - neck; 3 - right hand; 4 - left hand; 5 - torso; 6 - right ring; 7 - left ring; 8 - feet; 9 - misc1; 10 - misc2; 11 - misc3; 12 - misc4; 13 - mach1; 14 - mach2; 15 - mach3; 16 - mach4; 17 - spellbook; 18 - misc5