fixed channels list size

This commit is contained in:
Henrique Santiago 2012-04-07 03:20:36 -03:00
parent 2e43a77d64
commit 9c88c525fb
1 changed files with 1 additions and 1 deletions

View File

@ -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();