Browse Source

Local fixes.

DjWarmonger 9 năm trước cách đây
mục cha
commit
9ce6f874f0

+ 1 - 1
lib/mapObjects/CQuest.h

@@ -130,7 +130,7 @@ public:
 		h & rewardType & rID & rVal & seerName;
 		h & rewardType & rID & rVal & seerName;
 	}
 	}
 protected:
 protected:
-	static constexpr int OBJPROP_VISITED = 10;
+	static const int OBJPROP_VISITED = 10;
 
 
 	void setPropertyDer(ui8 what, ui32 val) override;
 	void setPropertyDer(ui8 what, ui32 val) override;
 };
 };

+ 2 - 2
lib/mapObjects/MiscObjects.h

@@ -29,7 +29,7 @@ public:
 		h & players;
 		h & players;
 	}
 	}
 
 
-	static constexpr int OBJPROP_VISITED = 10;
+	static const int OBJPROP_VISITED = 10;
 };
 };
 
 
 class DLL_LINKAGE CGCreature : public CArmedInstance //creatures on map
 class DLL_LINKAGE CGCreature : public CArmedInstance //creatures on map
@@ -453,7 +453,7 @@ class DLL_LINKAGE CGDenOfthieves : public CGObjectInstance
 class DLL_LINKAGE CGObelisk : public CPlayersVisited
 class DLL_LINKAGE CGObelisk : public CPlayersVisited
 {
 {
 public:
 public:
-	static constexpr int OBJPROP_INC = 20;
+	static const int OBJPROP_INC = 20;
 	static ui8 obeliskCount; //how many obelisks are on map
 	static ui8 obeliskCount; //how many obelisks are on map
 	static std::map<TeamID, ui8> visited; //map: team_id => how many obelisks has been visited
 	static std::map<TeamID, ui8> visited; //map: team_id => how many obelisks has been visited