From 649653956a9af6d92d310fa048886c5c5d616e3e Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 6 Mar 2009 04:25:14 +0300 Subject: [PATCH] [7385] Fixed mail price calculation broken recently by me. --- src/game/Mail.cpp | 4 +--- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp index 52cb723c1..912ead72c 100644 --- a/src/game/Mail.cpp +++ b/src/game/Mail.cpp @@ -122,9 +122,7 @@ void WorldSession::HandleSendMail(WorldPacket & recv_data ) return; } - uint32 cost = money + 30; - if (items_count) - cost = 30 * items_count; + uint32 cost = items_count ? 30 * items_count : 30; // price hardcoded in client uint32 reqmoney = cost + money; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 780e1fce4..fb8ea9d91 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7384" + #define REVISION_NR "7385" #endif // __REVISION_NR_H__