From 0a9f2d53853a9d26607a2307d27af05575b34823 Mon Sep 17 00:00:00 2001 From: karashiiro <49822414+karashiiro@users.noreply.github.com> Date: Sat, 27 Jul 2019 17:59:23 -0700 Subject: [PATCH] struct array and new constant --- src/common/Network/PacketDef/Zone/ServerZoneDef.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/common/Network/PacketDef/Zone/ServerZoneDef.h b/src/common/Network/PacketDef/Zone/ServerZoneDef.h index 94ed0616..4fe3733d 100644 --- a/src/common/Network/PacketDef/Zone/ServerZoneDef.h +++ b/src/common/Network/PacketDef/Zone/ServerZoneDef.h @@ -135,14 +135,11 @@ namespace Sapphire::Network::Packets::Server char fcName[24]; uint8_t unknown7; uint16_t padding1; - uint16_t classJobIdLevel[76]; // Pairs of classJobId, classJobLevel (38 * 2) - /* - Like this: - uint16_t gldId; // 1 - uint16_t gldLevel; - uint16_t pglId; - etc... through DNC (38) - */ + struct ClassJobEntry + { + uint16_t id; + uint16_t level; + } levelEntries[Common::CLASSJOB_TOTAL]; }; struct FFXIVIpcSetSearchInfo : FFXIVIpcBasePacket< UpdateSearchInfo >