summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.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/beingrecv.cpp
parent261a118937d8b1cd41cf16d983f880e5957f84b1 (diff)
downloadmanaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.gz
manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.bz2
manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.tar.xz
manaverse-55cbf74cbe2c40b4592e72621e40f8858fc376d9.zip
Move cards constants into separate file.
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 2d66f5152..bb6fff382 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -31,6 +31,8 @@
#include "being/mercenaryinfo.h"
+#include "const/resources/item/cards.h"
+
#include "enums/resources/notifytypes.h"
#include "particle/particle.h"
@@ -94,7 +96,7 @@ void BeingRecv::processBeingChangeLook2(Net::MessageIn &msg)
void BeingRecv::processBeingChangeLookCards(Net::MessageIn &msg)
{
Being *dstBeing = nullptr;
- int cards[4];
+ int cards[maxCards];
if (!actorManager)
{ // here can be look from char server
@@ -126,7 +128,7 @@ void BeingRecv::processBeingChangeLookCards(Net::MessageIn &msg)
if (type != 2)
id2 = 1;
- for (int f = 0; f < 4; f ++)
+ for (int f = 0; f < maxCards; f ++)
cards[f] = msg.readInt16("card");
if (!dstBeing)
@@ -1585,7 +1587,7 @@ void BeingRecv::processBeingViewEquipment(Net::MessageIn &msg)
msg.readInt32("location");
msg.readInt32("wear state");
msg.readInt8("refine");
- for (int d = 0; d < 4; d ++)
+ for (int d = 0; d < maxCards; d ++)
msg.readInt16("card");
msg.readInt32("hire expire date (?)");
msg.readInt16("equip type");