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:
Uleat 2016-04-12 18:29:09 -04:00
parent aafa840d61
commit 149a3c2e82

View File

@ -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;
}