Skip to content

Commit e415ccf

Browse files
committed
Fix group hooks triggering in the wrong state
1 parent 2067bec commit e415ccf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/server/game/Groups/Group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ bool Group::Create(Player* leader)
220220
return false;
221221

222222
#ifdef ELUNA
223-
if (Eluna* e = leader->GetEluna())
223+
if (Eluna* e = sWorld->GetEluna())
224224
e->OnCreate(this, m_leaderGuid, m_groupType);
225225
#endif
226226

src/server/game/Handlers/GroupHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void WorldSession::HandleGroupAcceptOpcode(WorldPacket& recvData)
233233
}
234234

235235
#ifdef ELUNA
236-
if (Eluna* e = GetPlayer()->GetEluna())
236+
if (Eluna* e = sWorld->GetEluna())
237237
if (!e->OnMemberAccept(group, GetPlayer()))
238238
return;
239239
#endif

0 commit comments

Comments
 (0)