summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-09 16:32:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-09 16:32:21 +0300
commit22d0a32e03656262a7a5cccb3769aed59bfe0a5b (patch)
tree93da37aa6457b5d85eee6f7f71a589f694cb11a9 /src/net
parent2dbb4469658b27c8fb6be109c4d0841e57619353 (diff)
downloadplus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.gz
plus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.bz2
plus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.xz
plus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.zip
Fix reading size for packet SMSG_MAP_MUSIC.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/playerrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp
index 8eed1ad4b..73d513032 100644
--- a/src/net/ea/playerrecv.cpp
+++ b/src/net/ea/playerrecv.cpp
@@ -221,7 +221,7 @@ void PlayerRecv::processPlayerArrowMessage(Net::MessageIn &msg)
void PlayerRecv::processMapMusic(Net::MessageIn &msg)
{
- const int size = msg.readInt16("len") - 5;
+ const int size = msg.readInt16("len") - 4;
const std::string music = msg.readString(size, "name");
soundManager.playMusic(music,
SkipError_false);