mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Bug Fix] Fix Bot Creation Issue (#4235)
# Notes - Creating bots was failing because were checking for `false` on `Database::CheckUsedName()` in `BotDatabase::QueryNameAvailability`. - `Database::CheckUsedName()` is now `Database::IsNameUsed()` and checks for both bots and character name usages. - We were checking for `false` which was always happening when there were no entries for the supplied name, meaning we were never allowed to create a bot.
This commit is contained in:
+1
-1
@@ -4203,7 +4203,7 @@ const char* Merc::GetRandomName(){
|
||||
//name must begin with an upper-case letter.
|
||||
valid = false;
|
||||
}
|
||||
else if (database.CheckUsedName(rndname)) {
|
||||
else if (!database.IsNameUsed(rndname)) {
|
||||
valid = true;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user