aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-06 15:22:19 -0600
committermegamage <none@none>2009-03-06 15:22:19 -0600
commit93113cd3cc4f67bc685d39524a21e0d53d352ffb (patch)
treee09de1b31f32474baa58e18c376a3ced307cf89d /src
parent50b3095312ef01dcc748011d740a8fadfaa04b6c (diff)
[7385] Fixed mail price calculation Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Mail.cpp4
-rw-r--r--src/shared/revision_nr.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp
index 978d8071ec5..8b5c5e5faf2 100644
--- a/src/game/Mail.cpp
+++ b/src/game/Mail.cpp
@@ -125,9 +125,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 780e1fce4c3..fb8ea9d9143 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__