aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/ItemHandler.cpp
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2012-08-04 01:39:18 +0100
committerNay <dnpd.dd@gmail.com>2012-08-04 01:39:18 +0100
commit48db4b2b7da984258fede9cfa13ea8c0ea2dc788 (patch)
tree241b9bea8a3f8f5eeea4ba5d9dfadb354ebff0c7 /src/server/game/Handlers/ItemHandler.cpp
parent12307c7d06011b3d64271af4bd4dfc08c348d7d2 (diff)
Core/PacketIO: Fix and enable SMSG_MESSAGECHAT
TODO: - Send addon prefix in this packet when language is Addon - Cleanup uses of SMSG_MESSAGECHAT (17 different "handlers" for it is not okay) (long term) - Missing a CMSG_MESSAGECHAT_ADDON_x or two
Diffstat (limited to 'src/server/game/Handlers/ItemHandler.cpp')
-rwxr-xr-xsrc/server/game/Handlers/ItemHandler.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/game/Handlers/ItemHandler.cpp b/src/server/game/Handlers/ItemHandler.cpp
index 18859e766d1..ce5729a7b40 100755
--- a/src/server/game/Handlers/ItemHandler.cpp
+++ b/src/server/game/Handlers/ItemHandler.cpp
@@ -1619,13 +1619,14 @@ void WorldSession::HandleTransmogrifyItems(WorldPacket& recvData)
cost += itemTransmogrified->GetTransmogrifyCost();
}
-
- // trusting the client, if it got here it has to have enough money
- // ... unless client was modified
- if (cost) // 0 cost if reverting look
- player->ModifyMoney(-cost);
}
+ // trusting the client, if it got here it has to have enough money
+ // ... unless client was modified
+ if (cost) // 0 cost if reverting look
+ player->ModifyMoney(-cost);
+
+
delete[] itemGuids;
delete[] newEntries;
delete[] slots;