[client] Bugfix: Make local variables class-wide
This commit is contained in:
parent
49c19fcaf1
commit
2c3e5043ca
1 changed files with 2 additions and 2 deletions
|
@ -12,6 +12,6 @@ MoveMessage::MoveMessage(byte* rawMessage) : PixelMessage(rawMessage)
|
||||||
// The position of the start of the message body
|
// The position of the start of the message body
|
||||||
void* messageBodyStart = static_cast<void*>(rawMessage + PixelMessage::MESSAGE_HEADER_LENGTH);
|
void* messageBodyStart = static_cast<void*>(rawMessage + PixelMessage::MESSAGE_HEADER_LENGTH);
|
||||||
|
|
||||||
byte MovementType = *(static_cast<byte*>(messageBodyStart));
|
MovementType = *(static_cast<byte*>(messageBodyStart));
|
||||||
unsigned short TickCount = *(static_cast<unsigned short*>(messageBodyStart + 1));
|
TickCount = *(static_cast<unsigned short*>(messageBodyStart + 1));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue