Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife authored and cyberium committed Jan 10, 2017
1 parent 5cae56f commit 8238f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Pet.cpp
Expand Up @@ -332,8 +332,8 @@ bool Pet::LoadPetFromDB(Player* owner, uint32 petentry /*= 0*/, uint32 petnumber
}
}

SetHealth(savedhealth > GetMaxHealth() ? GetMaxHealth() : savedhealth);
SetPower(powerType, savedpower > GetMaxPower(powerType) ? GetMaxPower(powerType) : savedpower);
SetHealth(savedhealth);
SetPower(powerType, savedpower);

map->Add((Creature*)this);
AIM_Initialize();
Expand Down

0 comments on commit 8238f69

Please sign in to comment.