Update PlayerbotMgr.cpp

Fix sql syntax
This commit is contained in:
hongyiqin 2022-08-11 02:07:07 +01:00 committed by GitHub
parent 1a25d2810b
commit c1f81772d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -958,7 +958,7 @@ void PlayerbotMgr::OnPlayerLogin(Player* player)
return;
uint32 accountId = player->GetSession()->GetAccountId();
QueryResult results = CharacterDatabase.Query("SELECT name FROM characters WHERE account = {}'", accountId);
QueryResult results = CharacterDatabase.Query("SELECT name FROM characters WHERE account = {}", accountId);
if (results)
{
std::ostringstream out;