fix parsing GM actions

This commit is contained in:
Eduardo Bart 2012-01-10 01:12:54 -02:00
parent 3e903a6113
commit 044213c6cd
2 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,12 @@ namespace Proto {
static const int ClientVersion = PROTOCOL;
static const int PicSignature = 0x4E119CBF;
#if PROTOCOL==860
const int NumViolationReasons = 20;
#elif PROTOCOL==862
const int NumViolationReasons = 19;
#endif
enum OsTypes {
OsWindow = 1,
OsLinux = 2,

View File

@ -279,7 +279,7 @@ void ProtocolGame::parsePlayerLogin(InputMessage& msg)
void ProtocolGame::parseGMActions(InputMessage& msg)
{
for(uint8 i = 0; i < 18; ++i)
for(uint8 i = 0; i < Proto::NumViolationReasons; ++i)
msg.getU8();
}