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

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

* Finalize
This commit is contained in:
Alex King authored and GitHub committed 2024-05-26 18:55:00 -05:00
1 parent 1b15f16e3e
commit c50fda0f73
8 files changed
+37 -22

No files matched your search

+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);