mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Fix console command SQL query
This commit is contained in:
parent
1c09fa5377
commit
7c16f2ae48
@ -1646,7 +1646,7 @@ bool RandomPlayerbotMgr::HandlePlayerbotConsoleCommand(ChatHandler* handler, cha
|
||||
for (std::vector<uint32>::iterator i = sPlayerbotAIConfig->randomBotAccounts.begin(); i != sPlayerbotAIConfig->randomBotAccounts.end(); ++i)
|
||||
{
|
||||
uint32 account = *i;
|
||||
if (QueryResult results = CharacterDatabase.Query("SELECT guid FROM characters WHERE account = {} AND name like {}", account, name.c_str()))
|
||||
if (QueryResult results = CharacterDatabase.Query("SELECT guid FROM characters WHERE account = {} AND name like '{}'", account, name.c_str()))
|
||||
{
|
||||
do
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user