aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-03-18 22:56:48 +0100
committerMachiavelli <none@none>2010-03-18 22:56:48 +0100
commit35a7f4849e161ebab96120a091cce7ed40bb5fc8 (patch)
tree495f4a04523ddec2ac31c217b3f87745ec95759c /src/game/Item.cpp
parentef57a96ccec821ca63cdf0a6b9f73f6df174fc7f (diff)
Store alternate currency spent on an item by Item ExtendedCost entry instead of honorPts/arenaPts/items seperately. Thanks to Opterman for the idea.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index eaf4ed776e7..217013e8e22 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -1059,16 +1059,7 @@ void Item::SaveRefundDataToDB()
ss << GetGUIDLow() << ",";
ss << RefundData->eligibleFor << ",";
ss << RefundData->paidMoney << ",";
- ss << RefundData->paidHonorPoints << ",";
- ss << RefundData->paidArenaPoints << ",";
-
- for (uint8 i=0; i<5; ++i)
- {
- ss << RefundData->paidItemId[i] << ",";
- ss << RefundData->paidItemCount[i];
- if (i < 4)
- ss << ",";
- }
+ ss << RefundData->paidExtendedCost;
ss << ")";
CharacterDatabase.Execute(ss.str().c_str());