mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Would real 'Fix for BotDatabase::LoadBotGroupIDForLoadBotGroup() failures when more than one bot-group exists and requested bg is not primary in retrieval order' please stand up..
This commit is contained in:
parent
aafa840d61
commit
149a3c2e82
@ -2329,10 +2329,13 @@ bool BotDatabase::LoadBotGroupIDForLoadBotGroup(const uint32 owner_id, const std
|
||||
if (!results.RowCount())
|
||||
return true;
|
||||
|
||||
auto row = results.begin();
|
||||
if (!group_name.compare(row[1]))
|
||||
botgroup_id = atoi(row[0]);
|
||||
|
||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||
if (!group_name.compare(row[1])) {
|
||||
botgroup_id = atoi(row[0]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user