Skip to content

Commit

Permalink
Fix 2042
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvins committed Sep 15, 2015
1 parent b0c039b commit f2605e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mapObjects/CGHeroInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ CGHeroInstance::CGHeroInstance()
setNodeType(HERO);
ID = Obj::HERO;
tacticFormationEnabled = inTownGarrison = false;
mana = movement = portrait = level = -1;
mana = movement = portrait = -1;
isStanding = true;
moveDir = 4;
level = 1;
exp = 0xffffffff;
visitedTown = nullptr;
type = nullptr;
Expand Down Expand Up @@ -291,7 +292,6 @@ void CGHeroInstance::initHero()
}
assert(validTypes());

level = 1;
if(exp == 0xffffffff)
{
initExp();
Expand Down

2 comments on commit f2605e0

@DjWarmonger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You changed -1 to 1?

@alexvins
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Please sign in to comment.