소스 검색

sex is uninitialized (a virgin ?). Fixed a typo.

Frank Zago 14 년 전
부모
커밋
c46cb29446
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lib/CObjectHandler.cpp

+ 2 - 1
lib/CObjectHandler.cpp

@@ -695,9 +695,10 @@ CGHeroInstance::CGHeroInstance()
 	visitedTown = NULL;
 	type = NULL;
 	boat = NULL;
+	sex = 0;
 	secSkills.push_back(std::make_pair(-1, -1));
 	speciality.setNodeType(CBonusSystemNode::SPECIALITY);
-	attachTo(&speciality); //do we evert need to detach it?
+	attachTo(&speciality); //do we ever need to detach it?
 }
 
 void CGHeroInstance::initHero(int SUBID)