From 0c2af9731d1e96fb67b603f023f93fcb34fdfc53 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 16 May 2024 13:47:36 -0300 Subject: [PATCH] resolve conversation --- src/creatures/players/player.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/creatures/players/player.hpp b/src/creatures/players/player.hpp index cf384a99cd1..3edfe8a0157 100644 --- a/src/creatures/players/player.hpp +++ b/src/creatures/players/player.hpp @@ -227,8 +227,8 @@ class Player final : public Creature, public Cylinder, public Bankable { void addList() override; void removePlayer(bool displayEffect, bool forced = true); - static uint64_t getExpForLevel(const uint64_t lv) { - return (((lv - 6ULL) * lv + 17ULL) * lv - 12ULL) / 6ULL * 100ULL; + static uint64_t getExpForLevel(const uint32_t level) { + return (((level - 6ULL) * level + 17ULL) * level - 12ULL) / 6ULL * 100ULL; } uint16_t getStaminaMinutes() const {