mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-29 06:33:06 +00:00
9227e37623
- sizeof(bool) is implementation defined. The server assumes it's 4 but for me it was 1 (tested with Release too) which caused some bugs - Structs aren't guaranteed to be packed. The compiler is free to change the layout, which we wouldn't want to for the Packet structs that we deserialize on the server.
14 lines
No EOL
353 B
C
14 lines
No EOL
353 B
C
#pragma once
|
|
|
|
#include "Packet.h"
|
|
|
|
struct PACKED ChangeStagePacket : Packet {
|
|
ChangeStagePacket() : Packet() {
|
|
this->mType = PacketType::CHANGESTAGE;
|
|
mPacketSize = sizeof(ChangeStagePacket) - sizeof(Packet);
|
|
};
|
|
char changeStage[0x30] = {};
|
|
char changeID[0x10] = {};
|
|
s8 scenarioNo = -1;
|
|
u8 subScenarioType = -1;
|
|
}; |