fix(object): correct read in CClientObjCreate::Get

This commit is contained in:
fallenoak 2026-01-13 19:24:35 -06:00
parent 97d386f745
commit 31fca17064
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 3 additions and 5 deletions

View File

@ -124,11 +124,9 @@ int32_t CClientObjCreate::Get(CDataStore* msg) {
} }
if (this->flags & 0x200) { if (this->flags & 0x200) {
SmartGUID guid; msg->Get(this->uint2D4);
*msg >> guid;
this->guid2D4 = guid;
} else { } else {
this->guid2D4 = 0; this->uint2D4 = 0;
} }
return msg->Size() >= msg->Tell(); return msg->Size() >= msg->Tell();

View File

@ -18,7 +18,7 @@ struct CClientObjCreate {
uint32_t uint2C4; uint32_t uint2C4;
float float2C8; float float2C8;
// TODO // TODO
WOWGUID guid2D4 = 0; uint64_t uint2D4 = 0; // TODO guid?
static void Skip(CDataStore* msg); static void Skip(CDataStore* msg);
int32_t Get(CDataStore* msg); int32_t Get(CDataStore* msg);