Browse Source

Remove unneccessary code

Tomasz Zieliński 1 year ago
parent
commit
134f78113e
1 changed files with 0 additions and 3 deletions
  1. 0 3
      lib/mapObjects/CGHeroInstance.cpp

+ 0 - 3
lib/mapObjects/CGHeroInstance.cpp

@@ -285,8 +285,6 @@ CGHeroInstance::CGHeroInstance():
 	setNodeType(HERO);
 	ID = Obj::HERO;
 	secSkills.emplace_back(SecondarySkill::NONE, -1);
-	blockVisit = true;
-	removable = true;
 }
 
 PlayerColor CGHeroInstance::getOwner() const
@@ -307,7 +305,6 @@ void CGHeroInstance::setHeroType(HeroTypeID heroType)
 
 void CGHeroInstance::initHero(CRandomGenerator & rand, const HeroTypeID & SUBID)
 {
-	blockVisit = true;
 	subID = SUBID.getNum();
 	initHero(rand);
 }