From e1841e31c606f1d97ea54c3f00f3380db814f3d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Jul 2014 22:44:37 +0300 Subject: Rename readInt8 into readUInt8 because it really read uint8_t. --- src/net/ea/skillhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/ea/skillhandler.cpp') diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index 002309de4..e7ac66d7a 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -90,7 +90,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) msg.readInt16(); // sp const int range = msg.readInt16(); msg.skip(24); // 0 unused - const int up = msg.readInt8(); + const int up = msg.readUInt8(); const int oldLevel = PlayerInfo::getSkillLevel(skillId); if (oldLevel && oldLevel != level) updateSkill = skillId; @@ -111,7 +111,7 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) const int level = msg.readInt16(); msg.readInt16(); // sp const int range = msg.readInt16(); - const int up = msg.readInt8(); + const int up = msg.readUInt8(); if (skillDialog && PlayerInfo::getSkillLevel(skillId) != level) skillDialog->playUpdateEffect(skillId); @@ -130,8 +130,8 @@ void SkillHandler::processSkillFailed(Net::MessageIn &msg) const int skillId = msg.readInt16(); const int16_t bskill = msg.readInt16(); msg.readInt16(); // btype - const signed char success = msg.readInt8(); - const signed char reason = msg.readInt8(); + const signed char success = msg.readUInt8(); + const signed char reason = msg.readUInt8(); if (success != static_cast(SKILL_FAILED) && bskill == static_cast(BSKILL_EMOTE)) { -- cgit v1.2.3-70-g09d2