mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
fixed channels list size
This commit is contained in:
parent
2e43a77d64
commit
9c88c525fb
@ -841,7 +841,7 @@ void ProtocolGame::parseCreatureSpeak(InputMessage& msg)
|
|||||||
void ProtocolGame::parseChannelList(InputMessage& msg)
|
void ProtocolGame::parseChannelList(InputMessage& msg)
|
||||||
{
|
{
|
||||||
int count = msg.getU8();
|
int count = msg.getU8();
|
||||||
std::vector<std::tuple<int, std::string>> channelList(count);
|
std::vector<std::tuple<int, std::string>> channelList;
|
||||||
for(int i = 0; i < count; i++) {
|
for(int i = 0; i < count; i++) {
|
||||||
int id = msg.getU16();
|
int id = msg.getU16();
|
||||||
std::string name = msg.getString();
|
std::string name = msg.getString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user