[client] Bugfix: Make local variables class-wide

This commit is contained in:
Starbeamrainbowlabs 2017-04-21 14:16:44 +01:00
parent 49c19fcaf1
commit 2c3e5043ca

View file

@ -12,6 +12,6 @@ MoveMessage::MoveMessage(byte* rawMessage) : PixelMessage(rawMessage)
// The position of the start of the message body
void* messageBodyStart = static_cast<void*>(rawMessage + PixelMessage::MESSAGE_HEADER_LENGTH);
byte MovementType = *(static_cast<byte*>(messageBodyStart));
unsigned short TickCount = *(static_cast<unsigned short*>(messageBodyStart + 1));
MovementType = *(static_cast<byte*>(messageBodyStart));
TickCount = *(static_cast<unsigned short*>(messageBodyStart + 1));
}