[Bots] Fix bot spawn when bot id = char_id (#1984)

* Fix for GENERIC_9_STRINGS

* Update .gitignore

* Fixed query for use case when char_id of owner equals a bot_id

* Update BotDatabase::LoadGroupedBotsByGroupID to not use a view though correct edge case where botid=charid
This commit is contained in:
neckkola 2022-03-06 20:41:53 -04:00 committed by GitHub
parent ac214f71d4
commit 261a9e6938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2637,8 +2637,8 @@ bool BotDatabase::LoadGroupedBotsByGroupID(const uint32 owner_id, const uint32 g
"SELECT `charid`"
" FROM `group_id`"
" WHERE `groupid` = '%u'"
" AND `charid` IN ("
" SELECT `bot_id`"
" AND `name` IN ("
" SELECT `name`"
" FROM `bot_data`"
" WHERE `owner_id` = '%u'"
" )",