diff --git a/sql/characters/playerbots_names.sql b/sql/characters/playerbots_names.sql index cadcac9d..ba42fe95 100644 --- a/sql/characters/playerbots_names.sql +++ b/sql/characters/playerbots_names.sql @@ -100010,5 +100010,4 @@ INSERT INTO `playerbots_names` VALUES DELETE FROM `playerbots_names` WHERE LENGTH(`name`) > 12; ALTER TABLE `playerbots_names` MODIFY `name` varchar(12); - -ALTER TABLE `playerbots_names` ADD in_use BIT default 0; \ No newline at end of file +ALTER TABLE `playerbots_names` ADD UNIQUE INDEX name(name, gender); diff --git a/src/RandomPlayerbotFactory.cpp b/src/RandomPlayerbotFactory.cpp index a0a02f1d..1171fc9e 100644 --- a/src/RandomPlayerbotFactory.cpp +++ b/src/RandomPlayerbotFactory.cpp @@ -412,7 +412,7 @@ void RandomPlayerbotFactory::CreateRandomBots() std::vector> account_creations; int account_creation = 0; - LOG_INFO("playerbots", "Creating cache for names, gender and race."); + LOG_INFO("playerbots", "Creating cache for names per gender and race."); QueryResult result = CharacterDatabase.Query("SELECT name, gender FROM playerbots_names"); if (!result) {