mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
Update RandomPlayerbotFactory.cpp
Fixed a typo
This commit is contained in:
@@ -877,7 +877,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
|
|
||||||
// Check how many randomBot guilds are in the guild table in the characterDB
|
// Check how many randomBot guilds are in the guild table in the characterDB
|
||||||
uint32 guildNumber = 0;
|
uint32 guildNumber = 0;
|
||||||
QueryResult guildTableResults = CharacterDatabase.Query("SELECT guildid, leaderguid FROM guid");
|
QueryResult guildTableResults = CharacterDatabase.Query("SELECT guildid, leaderguid FROM guild");
|
||||||
if (guildTableResults)
|
if (guildTableResults)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
@@ -887,7 +887,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
uint32 leaderGuid = fields[1].Get<uint32>();
|
uint32 leaderGuid = fields[1].Get<uint32>();
|
||||||
|
|
||||||
// check the accountID of the guild leader against the list of randomBot accounts to determine if this is a player guild or a bot guild
|
// check the accountID of the guild leader against the list of randomBot accounts to determine if this is a player guild or a bot guild
|
||||||
QueryResult charactersTableResults = CharacterDatabase.Query("SELECT account FROM characters WHERE guid = ({})", leaderGuid);
|
QueryResult charactersTableResults = CharacterDatabase.Query("SELECT account FROM characters WHERE guid = {}", leaderGuid);
|
||||||
if (charactersTableResults)
|
if (charactersTableResults)
|
||||||
{
|
{
|
||||||
Field* fields2 = charactersTableResults->Fetch();
|
Field* fields2 = charactersTableResults->Fetch();
|
||||||
|
|||||||
Reference in New Issue
Block a user