浏览代码

Fix regression from bonus system changes

Ivan Savenko 3 月之前
父节点
当前提交
74e697d41c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/mapping/MapFormatH3M.cpp

+ 1 - 1
lib/mapping/MapFormatH3M.cpp

@@ -2127,7 +2127,7 @@ std::shared_ptr<CGObjectInstance> CMapLoaderH3M::readHero(const int3 & mapPositi
 		bool hasCustomPrimSkills = reader->readBool();
 		if(hasCustomPrimSkills)
 		{
-			auto ps = object->getAllBonuses(Selector::type()(BonusType::PRIMARY_SKILL).And(Selector::sourceType()(BonusSource::HERO_BASE_SKILL)), nullptr);
+			auto ps = object->getAllBonuses(Selector::type()(BonusType::PRIMARY_SKILL).And(Selector::sourceType()(BonusSource::HERO_BASE_SKILL)), "");
 			if(ps->size())
 			{
 				logGlobal->debug("Hero %s has set primary skills twice (in map properties and on adventure map instance). Using the latter set...", object->getHeroTypeID().getNum() );