mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +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,9 +2329,12 @@ bool BotDatabase::LoadBotGroupIDForLoadBotGroup(const uint32 owner_id, const std
|
|||||||
if (!results.RowCount())
|
if (!results.RowCount())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
auto row = results.begin();
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
if (!group_name.compare(row[1]))
|
if (!group_name.compare(row[1])) {
|
||||||
botgroup_id = atoi(row[0]);
|
botgroup_id = atoi(row[0]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user