Update protocolgameparse.cpp (#777)

The vocation id was not being received by the client.
https://github.com/otland/forgottenserver/issues/1982
This commit is contained in:
A-Syntax 2017-02-04 06:05:03 -05:00 committed by Ahmed Samy
parent 837f461bb1
commit df422c0991
1 changed files with 1 additions and 1 deletions

View File

@ -1305,9 +1305,9 @@ void ProtocolGame::parsePremiumTrigger(const InputMessagePtr& msg)
void ProtocolGame::parsePlayerInfo(const InputMessagePtr& msg)
{
bool premium = msg->getU8(); // premium
int vocation = msg->getU8(); // vocation
if(g_game.getFeature(Otc::GamePremiumExpiration))
int premiumEx = msg->getU32(); // premium expiration used for premium advertisement
int vocation = msg->getU8(); // vocation
int spellCount = msg->getU16();
std::vector<int> spells;