diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 7fba9c3f6..6d573c3c2 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -4117,15 +4117,17 @@ namespace RoF2 case ListTraderItems: { LogTrading("(RoF2) action [{}]", action); - EQApplicationPacket *in = *p; - *p = nullptr; + EQApplicationPacket *in = *p; + *p = nullptr; TraderClientMessaging_Struct tcm{}; EQ::Util::MemoryStreamReader ss(reinterpret_cast(in->pBuffer), in->size); cereal::BinaryInputArchive ar(ss); - { ar(tcm); } + { + ar(tcm); + } - auto buffer = new char[4404]{}; //4404 is the fixed size of the packet for 200 item limit of RoF2 + auto buffer = new char[4404]{}; // 4404 is the fixed size of the packet for 200 item limit of RoF2 auto pos = buffer; VARSTRUCT_ENCODE_TYPE(uint32, pos, structs::RoF2BazaarTraderBuyerActions::ListTraderItems);