mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Fix bazaar welcome message
This commit is contained in:
parent
1dfd3349b7
commit
be52d413db
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user