diff options
author | QAston <none@none> | 2009-03-06 23:28:01 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-03-06 23:28:01 +0100 |
commit | bdaf54067b1c412dfe0b059d3d1e136f37af387f (patch) | |
tree | 87433cb389debcd85ba5ce26737938ea2d48432a /src/game/Mail.cpp | |
parent | ab4b55f35127909f3bf94587f5f30c2126b1e4a1 (diff) | |
parent | 13fc3dcd7e95288cd9482e7440df3b15a3c580cb (diff) |
*Fix a crash and merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Mail.cpp')
-rw-r--r-- | src/game/Mail.cpp | 4 |
1 files changed, 1 insertions, 3 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; |