From 11156ea43c537df2e3979dd3d83827e356fccbe6 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 2 May 2025 16:17:29 -0400 Subject: [PATCH] Fix GM commands --- src/ipc/zone/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc/zone/mod.rs b/src/ipc/zone/mod.rs index cdba099..0da70a6 100644 --- a/src/ipc/zone/mod.rs +++ b/src/ipc/zone/mod.rs @@ -131,7 +131,7 @@ impl Default for ServerZoneIpcSegment { } #[binrw] -#[brw(repr = u32)] +#[brw(repr = u8)] #[derive(Clone, PartialEq, Debug)] pub enum GameMasterCommandType { SetLevel = 0x1, @@ -309,6 +309,7 @@ pub enum ClientZoneIpcData { /// Sent by the client when they send a GM command. This can only be sent by the client if they are sent a GM rank. #[br(pre_assert(*magic == ClientZoneIpcType::GMCommand))] GameMasterCommand { + #[brw(pad_after = 3)] // padding command: GameMasterCommandType, arg0: u32, arg1: u32,