From 7fa78a35307227453ab55c7452e348a40cd41d65 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 May 2015 01:09:47 +0300 Subject: Add strong typed bool type Modifiable. --- src/net/tmwa/skillhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/tmwa/skillhandler.cpp') diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index b88e9e509..1b8678682 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -135,7 +135,7 @@ void SkillHandler::processPlayerSkills(Net::MessageIn &msg) const int sp = msg.readInt16("sp"); const int range = msg.readInt16("range"); msg.skip(24, "unused"); - const int up = msg.readUInt8("up flag"); + const Modifiable up = fromBool(msg.readUInt8("up flag"), Modifiable); const int oldLevel = PlayerInfo::getSkillLevel(skillId); if (oldLevel && oldLevel != level) updateSkill = skillId; -- cgit v1.2.3-70-g09d2