Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Commit

Permalink
Update mailbox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iryont committed Jul 15, 2014
1 parent 4835996 commit 614766d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mailbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ bool Mailbox::sendItemTo(const std::string& name, uint32_t depotId, Item* item)
ReturnValue moveResult;
Depot* depot = player->getDepot(depotId, true);
if(depot){
moveResult = g_game.internalMoveItem(item->getParent(), depot, INDEX_WHEREEVER, item, item->getItemCount(), NULL, NULL);
moveResult = g_game.internalMoveItem(item->getParent(), depot, INDEX_WHEREEVER, item, item->getItemCount(), NULL, 0);
if(moveResult == RET_NOERROR)
{
if(item->getID() == ITEM_PARCEL || item->getID() == ITEM_LETTER){
Expand All @@ -140,7 +140,7 @@ bool Mailbox::sendItemTo(const std::string& name, uint32_t depotId, Item* item)
}
else if (moveResult == RET_DEPOTISFULL)
{
g_game.internalCreatureSay(player, SPEAK_MONSTER_SAY, "You can not sent this because the receiver depot is full!");
g_game.internalCreatureSay(player, SPEAK_MONSTER_SAY, "Sorry, depot of the player is full.");
}
}

Expand Down

0 comments on commit 614766d

Please sign in to comment.