diff options
author | Machiavelli <none@none> | 2010-04-28 19:38:37 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-04-28 19:38:37 +0200 |
commit | a82d3d88c9e15361f459edf80e66781b02a010c5 (patch) | |
tree | 806116e458aa698ff7c48f7effbaf8823c07dd2d /src/game/Item.cpp | |
parent | 95e5ba5bdb69443ab2b3221be0008804b71fc5ce (diff) |
Fix item vendor refund for stackable items.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index 30023f511ab..414ff1839fc 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -1055,11 +1055,12 @@ void Item::BuildUpdate(UpdateDataMapType& data_map) ClearUpdateMask(false); } -void Item::SaveRefundDataToDB() +void Item::SaveRefundDataToDB(uint32 count) { std::ostringstream ss; - ss << "INSERT INTO item_refund_instance VALUES("; + ss << "REPLACE INTO item_refund_instance VALUES("; ss << GetGUIDLow() << ","; + ss << count << ", "; ss << GetRefundRecipient() << ","; ss << GetPaidMoney() << ","; ss << GetPaidExtendedCost(); |