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/ea/guildhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/ea/guildhandler.cpp') diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index 3b15062ff..1b8302ace 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -343,7 +343,7 @@ void GuildHandler::processGuildSkillInfo(Net::MessageIn &msg) const int sp = msg.readInt16("sp"); const int range = msg.readInt16("range"); const std::string name = msg.readString(24, "skill name"); - const int up = msg.readUInt8("up flag"); + const Modifiable up = fromBool(msg.readUInt8("up flag"), Modifiable); PlayerInfo::setSkillLevel(skillId, level); if (skillDialog) { -- cgit v1.2.3-70-g09d2