summaryrefslogtreecommitdiffstats
path: root/source/packets/cPacket_CreativeInventoryAction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/packets/cPacket_CreativeInventoryAction.cpp')
-rw-r--r--source/packets/cPacket_CreativeInventoryAction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/packets/cPacket_CreativeInventoryAction.cpp b/source/packets/cPacket_CreativeInventoryAction.cpp
index 46f125701..a71585df3 100644
--- a/source/packets/cPacket_CreativeInventoryAction.cpp
+++ b/source/packets/cPacket_CreativeInventoryAction.cpp
@@ -21,13 +21,13 @@ cPacket_CreativeInventoryAction::cPacket_CreativeInventoryAction( const cPacket_
-int cPacket_CreativeInventoryAction::Parse(const char * a_Data, int a_Size)
+int cPacket_CreativeInventoryAction::Parse(cByteBuffer & a_Buffer)
{
int TotalBytes = 0;
- HANDLE_PACKET_READ(ReadShort, m_Slot, TotalBytes);
+ HANDLE_PACKET_READ(ReadBEShort, m_Slot, TotalBytes);
cPacket_ItemData Item;
- int res = Item.Parse(a_Data + TotalBytes, a_Size - TotalBytes);
+ int res = Item.Parse(a_Buffer);
if (res < 0)
{
return res;