fix onReceiveMail notification:

https://github.com/TwistedScorpio/Nostalrius/issues/53
This commit is contained in:
ErikasKontenis
2019-12-29 20:24:02 +02:00
parent a58e99cace
commit b0f1fd5239
7 changed files with 42 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ bool Mailbox::sendItem(Item* item) const
if (g_game.internalMoveItem(item->getParent(), depotLocker, INDEX_WHEREEVER,
item, item->getItemCount(), nullptr, FLAG_NOLIMIT) == RETURNVALUE_NOERROR) {
g_game.transformItem(item, item->getID() + 1);
player->onReceiveMail();
player->onReceiveMail(town->getID());
return true;
}
}