mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
End of Day Jan 18
This commit is contained in:
+4
-3
@@ -2048,15 +2048,16 @@ Raid* EntityList::GetRaidByClient(Client* client)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Raid* EntityList::GetRaidByBot(Bot* bot)
|
||||
Raid* EntityList::GetRaidByBotName(const char* name)
|
||||
{
|
||||
|
||||
std::list<Raid*>::iterator iterator;
|
||||
iterator = raid_list.begin();
|
||||
|
||||
while (iterator != raid_list.end()) {
|
||||
for (auto& member : (*iterator)->members) {
|
||||
if (member.member) {
|
||||
if (member.member == bot->CastToClient()) {
|
||||
if (member.membername) {
|
||||
if (strcmp(member.membername, name) == 0) {
|
||||
//client->p_raid_instance = *iterator;
|
||||
return *iterator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user