diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 01:09:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 01:09:47 +0300 |
commit | 7fa78a35307227453ab55c7452e348a40cd41d65 (patch) | |
tree | 1d3e16a94bed043877306f1c47b3992add85b3be /src/net/ea/skillhandler.cpp | |
parent | a87db81b6b7551a248e31e2850577aefda092538 (diff) | |
download | manaverse-7fa78a35307227453ab55c7452e348a40cd41d65.tar.gz manaverse-7fa78a35307227453ab55c7452e348a40cd41d65.tar.bz2 manaverse-7fa78a35307227453ab55c7452e348a40cd41d65.tar.xz manaverse-7fa78a35307227453ab55c7452e348a40cd41d65.zip |
Add strong typed bool type Modifiable.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r-- | src/net/ea/skillhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index 2aeb41357..f05d1f18a 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -43,7 +43,7 @@ void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg) const int level = msg.readInt16("skill level"); const int sp = msg.readInt16("sp"); const int range = msg.readInt16("range"); - const int up = msg.readUInt8("up flag"); + const Modifiable up = fromBool(msg.readUInt8("up flag"), Modifiable); if (skillDialog && PlayerInfo::getSkillLevel(skillId) != level) skillDialog->playUpdateEffect(skillId); |