summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/auctionrecv.cpp')
-rw-r--r--src/net/eathena/auctionrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/auctionrecv.cpp b/src/net/eathena/auctionrecv.cpp
index e097be551..cc7723e5f 100644
--- a/src/net/eathena/auctionrecv.cpp
+++ b/src/net/eathena/auctionrecv.cpp
@@ -22,6 +22,8 @@
#include "logger.h"
+#include "const/resources/item/cards.h"
+
#include "net/messagein.h"
#include "debug.h"
@@ -51,7 +53,7 @@ void AuctionRecv::processAuctionResults(Net::MessageIn &msg)
msg.readUInt8("identify");
msg.readUInt8("attribute");
msg.readUInt8("refine");
- for (int d = 0; d < 4; d ++)
+ for (int d = 0; d < maxCards; d ++)
msg.readInt16("card");
msg.readInt32("price");
msg.readInt32("buy now");