summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2recv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-30 19:49:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-30 19:49:18 +0300
commit624bd43ad0112ab6010c463727ae722bfba1e668 (patch)
tree0698165d7cade531e03a98a0746d3f73c767dea4 /src/net/eathena/mail2recv.cpp
parent4fbc26faae3ea4dbfc6c6346f78c8c5377720b17 (diff)
downloadmv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.gz
mv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.bz2
mv-624bd43ad0112ab6010c463727ae722bfba1e668.tar.xz
mv-624bd43ad0112ab6010c463727ae722bfba1e668.zip
Remove some cards number to constants.
Diffstat (limited to 'src/net/eathena/mail2recv.cpp')
-rw-r--r--src/net/eathena/mail2recv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp
index a2080c88c..fdaf34f1d 100644
--- a/src/net/eathena/mail2recv.cpp
+++ b/src/net/eathena/mail2recv.cpp
@@ -159,7 +159,7 @@ void Mail2Recv::processAddItemResult(Net::MessageIn &msg)
delete options;
return;
}
- inventory->setCards(slot, cards, 4);
+ inventory->setCards(slot, cards, maxCards);
inventory->setOptions(slot, options);
inventory->setTag(slot, index);
mailEditWindow->updateItems();
@@ -431,7 +431,7 @@ void Mail2Recv::processReadMail(Net::MessageIn &msg)
delete options;
continue;
}
- inventory->setCards(slot, cards, 4);
+ inventory->setCards(slot, cards, maxCards);
inventory->setOptions(slot, options);
delete options;
}