1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Fixed hero flags.

This commit is contained in:
Michał W. Urbańczyk 2007-10-28 16:52:45 +00:00
parent 287b053041
commit 1aecaf1472

View File

@ -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;