Fix bazaar welcome message

This commit is contained in:
Michael Cook (mackal) 2014-10-01 02:11:38 -04:00
parent 1dfd3349b7
commit be52d413db

View File

@ -1615,8 +1615,8 @@ void Client::BuyTraderItem(TraderBuy_Struct* tbs,Client* Trader,const EQApplicat
} }
void Client::SendBazaarWelcome(){ void Client::SendBazaarWelcome()
{
const std::string query = "SELECT COUNT(DISTINCT char_id), count(char_id) FROM trader"; const std::string query = "SELECT COUNT(DISTINCT char_id), count(char_id) FROM trader";
auto results = database.QueryDatabase(query); auto results = database.QueryDatabase(query);
if (results.Success() && results.RowCount() == 1){ if (results.Success() && results.RowCount() == 1){
@ -1639,7 +1639,7 @@ void Client::SendBazaarWelcome(){
} }
const std::string buyerCountQuery = "SELECT COUNT(DISTINCT charid) FROM buyer"; const std::string buyerCountQuery = "SELECT COUNT(DISTINCT charid) FROM buyer";
results = database.QueryDatabase(query); results = database.QueryDatabase(buyerCountQuery);
if (!results.Success() || results.RowCount() != 1) if (!results.Success() || results.RowCount() != 1)
return; return;