[Performance] Improve SkillCaps::GetTrainLevel() Efficiency (#4350)

* [Performance] Improve SkillCaps::GetTrainLevel() Efficiency

* Finalize
This commit is contained in:
Alex King
2024-05-26 19:55:00 -04:00
committed by GitHub
parent 1b15f16e3e
commit c50fda0f73
8 changed files with 37 additions and 22 deletions
+1 -1
View File
@@ -1718,7 +1718,7 @@ void Client::OPGMTrainSkill(const EQApplicationPacket *app)
if (skilllevel == 0) {
//this is a new skill..
uint16 t_level = SkillTrainLevel(skill, GetClass());
uint16 t_level = GetSkillTrainLevel(skill, GetClass());
if (t_level == 0) {
LogSkills("Tried to train a new skill [{}] which is invalid for this race/class.", skill);