Browse Source

[client] Bugfix: Make local variables class-wide

master
Starbeamrainbowlabs 4 years ago
parent
commit
2c3e5043ca
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      PixelHub-Client/src/Messages/MoveMessage.cpp

+ 2
- 2
PixelHub-Client/src/Messages/MoveMessage.cpp 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));
}