浏览代码

Fixed hero flags.

Michał W. Urbańczyk 18 年之前
父节点
当前提交
1aecaf1472
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      CMT.cpp

+ 3 - 2
CMT.cpp

@@ -100,8 +100,9 @@ void initGameState(CGameInfo * cgi)
 	{
 		if (!cgi->heroh->heroInstances[i]->type || cgi->heroh->heroInstances[i]->state->owner<0)
 			continue;
-		CGHeroInstance * vhi = new CGHeroInstance();
-		*vhi=*(cgi->heroh->heroInstances[i]);
+		//CGHeroInstance * vhi = new CGHeroInstance();
+		//*vhi=*(cgi->heroh->heroInstances[i]);
+		CGHeroInstance * vhi = (cgi->heroh->heroInstances[i]);
 		if (!vhi->level)
 		{
 			vhi->exp=40+rand()%50;