File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
WowPacketParserModule.V4_4_0_54481/Parsers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,11 @@ public static void HandleServerTrainerList(Packet packet)
333333 public static void HandleVendorInventory ( Packet packet )
334334 {
335335 uint entry = packet . ReadPackedGuid128 ( "VendorGUID" ) . GetEntry ( ) ;
336- packet . ReadByte ( "Reason" ) ;
336+ if ( ClientVersion . AddedInVersion ( ClientVersionBuild . V4_4_2_59185 ) )
337+ packet . ReadInt32 ( "Reason" ) ;
338+ else
339+ packet . ReadByte ( "Reason" ) ;
340+
337341 int count = packet . ReadInt32 ( "VendorItems" ) ;
338342
339343 for ( int i = 0 ; i < count ; ++ i )
@@ -346,7 +350,8 @@ public static void HandleVendorInventory(Packet packet)
346350 packet . ReadInt64 ( "Price" , i ) ;
347351 vendor . Slot = packet . ReadInt32 ( "Muid" , i ) ;
348352 vendor . Type = ( uint ) packet . ReadInt32 ( "Type" , i ) ;
349- packet . ReadInt32 ( "Durability" , i ) ;
353+ if ( ClientVersion . RemovedInVersion ( ClientVersionBuild . V4_4_2_59185 ) )
354+ packet . ReadInt32 ( "Durability" , i ) ;
350355 int buyCount = packet . ReadInt32 ( "StackCount" , i ) ;
351356 int maxCount = packet . ReadInt32 ( "Quantity" , i ) ;
352357 vendor . ExtendedCost = packet . ReadUInt32 ( "ExtendedCostID" , i ) ;
You can’t perform that action at this time.
0 commit comments