diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-09 16:32:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-09 16:32:21 +0300 |
commit | 22d0a32e03656262a7a5cccb3769aed59bfe0a5b (patch) | |
tree | 93da37aa6457b5d85eee6f7f71a589f694cb11a9 | |
parent | 2dbb4469658b27c8fb6be109c4d0841e57619353 (diff) | |
download | manaplus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.gz manaplus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.bz2 manaplus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.tar.xz manaplus-22d0a32e03656262a7a5cccb3769aed59bfe0a5b.zip |
Fix reading size for packet SMSG_MAP_MUSIC.
-rw-r--r-- | src/net/ea/playerrecv.cpp | 2 |
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); |