aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-04-30 19:20:59 +0200
committerMachiavelli <none@none>2010-04-30 19:20:59 +0200
commit4b1a9916acb8d2a8281346a430ee178434ec0c4b (patch)
tree86dd7176c1e4696f94f3efae2bb10557f240ecfe /src/game/Item.cpp
parent31113370b333801f7089e287707f8ae060cff09f (diff)
Clean up in item refund related code.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index 414ff1839fc..30023f511ab 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -1055,12 +1055,11 @@ void Item::BuildUpdate(UpdateDataMapType& data_map)
ClearUpdateMask(false);
}
-void Item::SaveRefundDataToDB(uint32 count)
+void Item::SaveRefundDataToDB()
{
std::ostringstream ss;
- ss << "REPLACE INTO item_refund_instance VALUES(";
+ ss << "INSERT INTO item_refund_instance VALUES(";
ss << GetGUIDLow() << ",";
- ss << count << ", ";
ss << GetRefundRecipient() << ",";
ss << GetPaidMoney() << ",";
ss << GetPaidExtendedCost();