瀏覽代碼

Fix assertion

Ivan Savenko 2 年之前
父節點
當前提交
2f9073e13a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      lib/mapping/CCampaignHandler.h
  2. 1 1
      lib/mapping/MapFeaturesH3M.cpp

+ 1 - 1
lib/mapping/CCampaignHandler.h

@@ -74,7 +74,7 @@ struct DLL_LINKAGE CampaignRegions
 class DLL_LINKAGE CCampaignHeader
 {
 public:
-	si32 version = 0; //4 - RoE, 5 - AB, 6 - SoD and WoG
+	si32 version = 0; //4 - RoE, 5 - AB, 6 - SoD, WoG and HotA
 	CampaignRegions campaignRegions;
 	int numberOfScenarios = 0;
 	std::string name, description;

+ 1 - 1
lib/mapping/MapFeaturesH3M.cpp

@@ -135,7 +135,7 @@ MapFormatFeaturesH3M MapFormatFeaturesH3M::getFeaturesHOTA(uint32_t hotaVersion)
 	if(hotaVersion < 3)
 	{
 		result.artifactsCount = 163; // + HotA artifacts
-		result.heroesCount = 176; // + Cove
+		result.heroesCount = 177; // + Cove
 		result.heroesPortraitsCount = 187; // + Cove
 	}
 	if(hotaVersion == 3)