mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-03 14:22:17 +00:00
Grouping with Mercenaries is considerably less buggy.
This commit is contained in:
1 parent
b5c6b47639
commit
c5a90adb39
12 files changed
+595
-383
No files matched your search
+8
-4
@@ -2563,18 +2563,22 @@ void ZoneDatabase::RefreshGroupFromDB(Client *client){
|
||||
std::string query = StringFormat("SELECT name FROM group_id WHERE groupid = %d", group->GetID());
|
||||
auto results = QueryDatabase(query);
|
||||
if (!results.Success())
|
||||
printf("Error in group update query: %s\n", results.ErrorMessage().c_str());
|
||||
else
|
||||
{
|
||||
printf("Error in group update query: %s\n", results.ErrorMessage().c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||
if(index >= 6)
|
||||
continue;
|
||||
continue;
|
||||
|
||||
if(strcmp(client->GetName(), row[0]) == 0)
|
||||
continue;
|
||||
continue;
|
||||
|
||||
strcpy(gu->membername[index], row[0]);
|
||||
index++;
|
||||
}
|
||||
}
|
||||
|
||||
client->QueuePacket(outapp);
|
||||
safe_delete(outapp);
|
||||
|
||||
Reference in new issue
Block a user