mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
Crash fix in GuildManagementActions
This commit is contained in:
parent
f4da95ef8a
commit
5600e94e55
@ -213,7 +213,7 @@ bool GuildManageNearbyAction::Execute(Event event)
|
||||
if (sServerFacade->GetDistance2d(bot, player) > sPlayerbotAIConfig->sightDistance)
|
||||
continue;
|
||||
|
||||
if (botAI->DoSpecificAction("ginvite", Event("guild management", guid)))
|
||||
if (botAI && botAI->DoSpecificAction("ginvite", Event("guild management", guid)))
|
||||
found++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user