2
0
Michał W. Urbańczyk 18 жил өмнө
parent
commit
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;