mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 19:47:16 +00:00
[Bug Fix] GLAA fix after database.cpp updates (#4277)
* Hopefully fix glaa * Potential Fix for GroupAA Issues This seems to resolve the GroupAA issue. Tested with two characters joining a group. Functions the same as previous builds like 22.45, 22.46, etc. * Fix for GLAA issue - For testing. * Redo fix for GLAA * Cleanup GLAA fix and move savng to repo --------- Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
|
||||
class GroupLeadersRepository: public BaseGroupLeadersRepository {
|
||||
public:
|
||||
|
||||
/**
|
||||
* This file was auto generated and can be modified and extended upon
|
||||
*
|
||||
@@ -53,6 +52,20 @@ public:
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
static int UpdateLeadershipAA(Database &db, std::string &aa, uint32 group_id)
|
||||
{
|
||||
const auto group_leader = GetWhere(db, fmt::format("gid = '{}' LIMIT 1", group_id));
|
||||
if(group_leader.empty()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
db.Encode(aa);
|
||||
auto m = group_leader[0];
|
||||
m.leadershipaa = aa;
|
||||
|
||||
return UpdateOne(db, m);
|
||||
}
|
||||
};
|
||||
|
||||
#endif //EQEMU_GROUP_LEADERS_REPOSITORY_H
|
||||
|
||||
Reference in New Issue
Block a user