summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-17 18:36:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-17 19:19:58 +0300
commit55cbf74cbe2c40b4592e72621e40f8858fc376d9 (patch)
tree1adb70df7ddddde9a504d572a789e7afb5cae58c /src/net/eathena/auctionrecv.cpp
parent261a118937d8b1cd41cf16d983f880e5957f84b1 (diff)
downloadmanaplus-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.gz
manaplus-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.bz2
manaplus-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.xz
manaplus-55cbf74cbe2c40b4592e72621e40f8858fc376d9.zip
Move cards constants into separate file.
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");