[Bug Fix] Changing Group Leader Invalidated GetLeaderName() (#3712)

# Notes
- Utilizes fixes posted in https://github.com/EQEmu/Server/issues/3706 to resolve https://github.com/EQEmu/Server/issues/368.
- Changing group leader caused issues because we assumed `member[0]` was always leader.
This commit is contained in:
Alex King
2023-11-26 00:27:15 -05:00
committed by GitHub
parent f8c3c03185
commit 62532c6bdd
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -2510,3 +2510,9 @@ bool Group::IsLeader(const char* name) {
return false;
}
std::string Group::GetGroupLeaderName(uint32 group_id) {
char leader_name_buffer[64] = { 0 };
database.GetGroupLeadershipInfo(group_id, leader_name_buffer);
return std::string(leader_name_buffer);
}