Core: Fix Item::SaveRefundDataToDB prepared statement parameters

This commit is contained in:
click
2012-04-04 00:29:22 +02:00
parent 5ebace6c7f
commit 9074102702
+3 -3
View File
@@ -1089,9 +1089,9 @@ void Item::SaveRefundDataToDB()
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_ITEM_REFUND_INSTANCE);
stmt->setUInt32(0, GetGUIDLow());
stmt->setUInt32(0, GetRefundRecipient());
stmt->setUInt32(0, GetPaidMoney());
stmt->setUInt16(0, uint16(GetPaidExtendedCost()));
stmt->setUInt32(1, GetRefundRecipient());
stmt->setUInt32(2, GetPaidMoney());
stmt->setUInt16(3, uint16(GetPaidExtendedCost()));
trans->Append(stmt);
CharacterDatabase.CommitTransaction(trans);