From 85fe5867f3476dd3fb12378af26a0ad37f4c40ee Mon Sep 17 00:00:00 2001 From: djayk1 Date: Mon, 23 Jun 2014 12:07:38 -0300 Subject: [PATCH] Update protocolgameparse.cpp --- src/client/protocolgameparse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/protocolgameparse.cpp b/src/client/protocolgameparse.cpp index e53e1182..fd727f19 100644 --- a/src/client/protocolgameparse.cpp +++ b/src/client/protocolgameparse.cpp @@ -1022,7 +1022,8 @@ void ProtocolGame::parsePlayerInfo(const InputMessagePtr& msg) { bool premium = msg->getU8(); // premium int vocation = msg->getU8(); // vocation - int premiumEx = msg->getU32(); // premium expiration + if(g_game.getFeature(Otc::GamePremiumExpiration)) + int premiumEx = msg->getU32(); // premium expiration int spellCount = msg->getU16(); std::vector spells;