Browse Source

Fixed hero flags.

Michał W. Urbańczyk 18 years ago
parent
commit
1aecaf1472
1 changed files with 3 additions and 2 deletions
  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;