diff options
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(); |