From cef1dfd0c02a063b541dd7370f3d93c24c974cea Mon Sep 17 00:00:00 2001 From: akkadius Date: Sun, 24 Aug 2014 02:50:39 -0500 Subject: [PATCH] Query Fix for SendQuery (Temporary) --- zone/client_packet.cpp | 4 ++-- zone/queryserv.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 659765ba8..f35ec0565 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -12884,8 +12884,8 @@ void Client::Handle_OP_AltCurrencySell(const EQApplicationPacket *app) { /* QS: PlayerLogAlternateCurrencyTransactions :: Sold to Merchant*/ if (RuleB(QueryServ, PlayerLogAlternateCurrencyTransactions)){ - std::string event_desc = StringFormat("Sold to Merchant :: itemid:%i npcid:%i alt_currency_id:%i cost:%i in zoneid:%i instid:%i", item->ID, npc_id, alt_cur_id, cost, this->GetZoneID(), this->GetInstanceID()); - QServ->PlayerLogEvent(Player_Log_Alternate_Currency_Transactions, this->CharacterID(), event_desc); + std::string event_desc = StringFormat("Sold to Merchant :: itemid:%u npcid:%u alt_currency_id:%u cost:%u in zoneid:%u instid:%i", item->ID, npc_id, alt_cur_id, cost, this->GetZoneID(), this->GetInstanceID()); + QServ->PlayerLogEvent(Player_Log_Alternate_Currency_Transactions, this->CharacterID(), event_desc); } FastQueuePacket(&outapp); diff --git a/zone/queryserv.cpp b/zone/queryserv.cpp index ad7de0424..2b02d193c 100644 --- a/zone/queryserv.cpp +++ b/zone/queryserv.cpp @@ -47,6 +47,6 @@ void QueryServ::PlayerLogEvent(int Event_Type, int Character_ID, std::string Eve { std::string query = StringFormat( "INSERT INTO `qs_player_events` (event, char_id, event_desc, time) VALUES (%i, %i, '%s', UNIX_TIMESTAMP(now()))", - Event_Type, Character_ID, EscapeString(Event_Desc).c_str()); + Event_Type, Character_ID, EscapeString(Event_Desc.c_str()).c_str()); SendQuery(query); -} +} \ No newline at end of file