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:
parent
287b053041
commit
1aecaf1472
5
CMT.cpp
5
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;
|
||||
|
Loading…
Reference in New Issue
Block a user