diff --git a/modules/game_cyclopedia/tab/character/character.lua b/modules/game_cyclopedia/tab/character/character.lua index 88d9e237b..0643baeb6 100644 --- a/modules/game_cyclopedia/tab/character/character.lua +++ b/modules/game_cyclopedia/tab/character/character.lua @@ -846,9 +846,7 @@ function Cyclopedia.loadCharacterGeneralStats(data, skills) Cyclopedia.setCharacterSkillBase("magiclevel", data.magicLevel, data.baseMagicLevel) for i = Skill.Fist + 1, Skill.Fishing + 1 do - local skillLevel = skills[i][1] - local baseSkill = skills[i][2] - local skillPercent = skills[i][3] + local skillLevel, baseSkill, skillPercent = unpack(skills[i]) Cyclopedia.onSkillChange(player, i - 1, skillLevel, skillPercent) Cyclopedia.onBaseCharacterSkillChange(player, i - 1, baseSkill) end diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index 180137e31..fa10bb473 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -4078,7 +4078,7 @@ void ProtocolGame::parseCyclopediaCharacterInfo(const InputMessagePtr& msg) const uint16_t baseSkill = msg->getU16(); msg->getU16(); // base + loyalty bonus(?) const uint16_t skillPercent = msg->getU16() / 100; - skills.push_back({ skillLevel, skillPercent, baseSkill }); + skills.push_back({ skillLevel, baseSkill, skillPercent }); } const uint8_t combatCount = msg->getU8();