Bläddra i källkod

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

Frank Zago 14 år sedan
förälder
incheckning
c46cb29446
1 ändrade filer med 2 tillägg och 1 borttagningar
  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)