AlexVinS 10 年之前
父節點
當前提交
f2605e059c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/mapObjects/CGHeroInstance.cpp

+ 2 - 2
lib/mapObjects/CGHeroInstance.cpp

@@ -217,9 +217,10 @@ CGHeroInstance::CGHeroInstance()
 	setNodeType(HERO);
 	ID = Obj::HERO;
 	tacticFormationEnabled = inTownGarrison = false;
-	mana = movement = portrait = level = -1;
+	mana = movement = portrait = -1;
 	isStanding = true;
 	moveDir = 4;
+	level = 1;
 	exp = 0xffffffff;
 	visitedTown = nullptr;
 	type = nullptr;
@@ -291,7 +292,6 @@ void CGHeroInstance::initHero()
 	}
 	assert(validTypes());
 
-	level = 1;
 	if(exp == 0xffffffff)
 	{
 		initExp();