mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
[Crash fix] Fix a possible crash
This commit is contained in:
parent
fce0f431e1
commit
2f93eeedc9
@ -19,7 +19,7 @@ bool InviteToGroupAction::Execute(Event event)
|
||||
|
||||
bool InviteToGroupAction::Invite(Player* player)
|
||||
{
|
||||
if (!player)
|
||||
if (!player || !player->IsInWorld())
|
||||
return false;
|
||||
|
||||
if (!GET_PLAYERBOT_AI(player) && !botAI->GetSecurity()->CheckLevelFor(PLAYERBOT_SECURITY_INVITE, true, player))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user