Skip to content

Commit

Permalink
Use updateVocation on set vocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed Oct 8, 2024
1 parent 733113d commit 2d8d657
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ void Player::setID()
void Player::setVocation(Vocation_ptr vocation)
{
this->vocation = vocation;
updateRegeneration();
setBaseSpeed(vocation->baseSpeed);
updateBaseSpeed();
g_game.changeSpeed(this, 0);
updateVocation();
}

void Player::updateVocation()
Expand Down

0 comments on commit 2d8d657

Please sign in to comment.